Created
July 2, 2019 12:14
-
-
Save gnurag/3be5e97283fee56753ac00ca262b5563 to your computer and use it in GitHub Desktop.
TLS setup with LetsEncrypt
This file contains 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
yum install nginx certbot | |
systemctl enable nginx | |
systemctl start nginx | |
certbot certonly -n --agree-tos --email [email protected] --webroot -w /usr/share/nginx/html -d keycloak.journalctl.org | |
# Certificate: /etc/letsencrypt/live/keycloak.journalctl.org/fullchain.pem | |
# Private Key: /etc/letsencrypt/live/keycloak.journalctl.org/privkey.pem | |
# After 3 months | |
certbot renew |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment