Renewing HTTPS/SSL certificates, for a custom domain, on IBM Bluemix.
90 day certificate lifecycle.
asdf
Being a forward-thinking developer, I recognized when I first implemented my HTTPS cert that when the renewal came around, I would need to fiddle around with the route and response value that Let's Encrypt is looking for; which seems to be generated at runtime of the letsencrypt/certbot script. Instead of hard coding the route and response values as strings, I instead opted to pull them from environment variables. This makes great sense, as Node works great with environment variables and Bluemix does a great job of making the user-defined environment variables easily maintaned through its web console.
Here's what my route definition for the Let's Encrypt query/response looks like:
app.get('/.well-known/acme-challenge/'+process.env.LETS_ENCRYPT_ROUTE,
function(req, res){
res.send(process.env.LETS_ENCRYPT_VERIFICATION);
});