2015-12-05 23:59:33 -06:00
|
|
|
# Docker-LetsEncrypt
|
|
|
|
|
|
|
|
Easily get your "Let's Encrypt" SSL Certificates
|
|
|
|
|
|
|
|
**PLEASE READ THE SOURCE CODE! YOU MUST TRUST IT WITH YOUR PRIVATE KEYS!**
|
|
|
|
|
|
|
|
## How to use this script
|
2015-12-09 03:20:49 -06:00
|
|
|
**You must have [docker-compose](https://github.com/docker/compose/blob/master/docs/install.md) installed first. Then follow the steps below.**
|
2015-12-05 23:59:33 -06:00
|
|
|
### Step 1: Create a Let's Encrypt account private key (if you haven't already)
|
|
|
|
|
|
|
|
You must have a public key registered with Let's Encrypt and sign your requests
|
|
|
|
with the corresponding private key. If you don't understand what I just said,
|
|
|
|
this script likely isn't for you! Please use the official Let's Encrypt
|
|
|
|
[client](https://github.com/letsencrypt/letsencrypt).
|
|
|
|
|
|
|
|
```
|
|
|
|
openssl genrsa 4096 > account.key
|
|
|
|
```
|
|
|
|
### Step 2: Copy account.key to docker-letsencrypt/
|
|
|
|
You know how to do it. :)
|
|
|
|
### Step 3: Create Your key and Cert
|
|
|
|
```
|
|
|
|
sh cert.sh
|
|
|
|
```
|
2015-12-06 00:17:33 -06:00
|
|
|
Then type your domain and press Enter.
|
2015-12-05 23:59:33 -06:00
|
|
|
|
2015-12-06 00:17:33 -06:00
|
|
|
Wait for a moment, and you can find your key and cert in docker-lesencrypt/certs/
|
2015-12-05 23:59:33 -06:00
|
|
|
####Have fun :)
|