express-letsencrypt-simple

1.0.1 • Public • Published

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);

Package Sidebar

Install

npm i express-letsencrypt-simple

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • joshuakarjala