Skip to content

Instantly share code, notes, and snippets.

@gnurag
Created July 2, 2019 12:14
Show Gist options
  • Save gnurag/3be5e97283fee56753ac00ca262b5563 to your computer and use it in GitHub Desktop.
Save gnurag/3be5e97283fee56753ac00ca262b5563 to your computer and use it in GitHub Desktop.
TLS setup with LetsEncrypt
yum install nginx certbot
systemctl enable nginx
systemctl start nginx
certbot certonly -n --agree-tos --email gnurag@gmail.com --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