Very simple route module for validating with Let's Encrypt
Provide the follow environment variables -
You can get these values by running certbot in manual mode
sudo certbot certonly --manual
After following the wizard you should get to a point where it outputs this in the console:
Make sure your web server displays the following content at http://app.foo.bar/.well-known/acme-challenge/<LETSENCRYPT_CHALLENGE> before continuing: <LETSENCRYPT_RESPONSE>
Update your server with these variables. Not you can let the wizard validate against your server and you will get your certificate!
const letsencrypt = require('express-letsencrypt-simple'); ... app.use('/.well-known', letsencrypt);