Skip to content

joshuakarjala/express-letsencrypt-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-letsencrypt-simple

Very simple route module for validating with Let's Encrypt

Usage

Provide the follow environment variables - LETSENCRYPT_CHALLENGE and LETSENCRYPT_RESPONSE.

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!

Code

const letsencrypt = require('express-letsencrypt-simple');
...
app.use('/.well-known', letsencrypt);

About

Very simple route module for validating with Let's Encrypt

Resources

License

Stars

Watchers

Forks

Packages

No packages published