Last active
September 6, 2017 19:03
-
-
Save tjamet/640420da897df912c0eca66610ee416e to your computer and use it in GitHub Desktop.
Create letsencrypt certificate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir www letsencrypt lib | |
docker run --rm -p 80:9000 -v $PWD/www:/src -w /src python:alpine python -m http.server 9000 | |
docker run -v $PWD/letsencrypt:/etc/letsencrypt -v $PWD/lib:/var/lib/letsencrypt -v $PWD/www:/var/www certbot/certbot certonly --webroot -w /var/www --domain ${domain} | |
cat ./letsencrypt/live/${domain}/fullchain.pem ./letsencrypt/live/${domain}/privkey.pem > cert.haproxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment