Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msporny/le-store-certbot
The "certbot" storage strategy for node-letsencrypt.
https://github.com/msporny/le-store-certbot
Last synced: 2 days ago
JSON representation
The "certbot" storage strategy for node-letsencrypt.
- Host: GitHub
- URL: https://github.com/msporny/le-store-certbot
- Owner: msporny
- License: mit
- Created: 2016-12-19T16:17:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-25T17:43:23.000Z (about 8 years ago)
- Last Synced: 2024-11-09T05:39:51.428Z (about 2 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Daplie is Taking Back the Internet!
--------------[![](https://daplie.github.com/igg/images/ad-developer-rpi-white-890x275.jpg?v2)](https://daplie.com/preorder/)
Stop serving the empire and join the rebel alliance!
* [Invest in Daplie on Wefunder](https://daplie.com/invest/)
* [Pre-order Cloud](https://daplie.com/preorder/), The World's First Home Server for Everyonele-store-certbot
================The "certbot" storage strategy for node-letsencrypt.
This le storage strategy aims to maintain compatibility with the
configuration files and file structure of the official certbot client.Note: You cannot use this strategy on ephemeral instances (heroku, aws elastic).
Usage
-----```bash
npm install --save [email protected]
``````bash
var leStore = require('le-store-certbot').create({
configDir: require('homedir')() + '/letsencrypt/etc' // or /etc/letsencrypt or wherever
, privkeyPath: ':configDir/live/:hostname/privkey.pem' //
, fullchainPath: ':configDir/live/:hostname/fullchain.pem' // Note: both that :configDir and :hostname
, certPath: ':configDir/live/:hostname/cert.pem' // will be templated as expected by
, chainPath: ':configDir/live/:hostname/chain.pem' // node-letsencrypt, workDir: require('homedir')() + '/letsencrypt/var/lib'
, logsDir: require('homedir')() + '/letsencrypt/var/log', webrootPath: '~/letsencrypt/srv/www/:hostname/.well-known/acme-challenge'
, debug: false
});var LE = require('letsencrypt');
LE.create({
server: LE.stagingServerUrl // Change to LE.productionServerUrl in production
, store: leStore
});
```Example File Structure
----------------------```
~/letsencrypt/
└── etc
├── accounts
│ └── acme-staging.api.letsencrypt.org
│ └── directory
│ └── cd96ac4889ddfa47bfc66300ab223342
│ ├── meta.json
│ ├── private_key.json
│ └── regr.json
├── archive
│ └── example.daplie.me
│ ├── cert0.pem
│ ├── chain0.pem
│ ├── fullchain0.pem
│ └── privkey0.pem
├── live
│ └── example.daplie.me
│ ├── cert.pem
│ ├── chain.pem
│ ├── fullchain.pem
│ ├── privkey.pem
│ └── privkey.pem.bak
└── renewal
├── example.daplie.me.conf
└── example.daplie.me.conf.bak
```