Skip to content

Instantly share code, notes, and snippets.

@gpimblott
Created March 3, 2017 16:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gpimblott/aa583afe6b31c14780a4d2f1d7980f24 to your computer and use it in GitHub Desktop.
NodeJS Route for LetsEncrypt cert validation
// Lets encrypt response
var letsEncryptUrl = process.env.LETS_ENCRYPT;
var letsEncryptResponse = process.env.LETS_ENCRYPT_RESPONSE;
if( letsEncryptResponse != undefined && letsEncryptResponse != undefined) {
self.app.get('/.well-known/acme-challenge/' + letsEncryptUrl, function (req, res) {
res.send(letsEncryptResponse);
res.end();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment