Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Created April 5, 2023 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrichardsz/365cfc4c5971f9d9697d0da3e011e2b5 to your computer and use it in GitHub Desktop.
Save jrichardsz/365cfc4c5971f9d9697d0da3e011e2b5 to your computer and use it in GitHub Desktop.
ssl certificates snippets
## docker
sudo apt-get update
sudo apt install snapd -y
sudo snap install core; sudo snap refresh core
## steps
https://certbot.eff.org/instructions?ws=other&os=ubuntufocal&tab=standard
sudo certbot certonly --standalone
enter domain without protocol
result
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/app.acme.com/fullchain.pem
Key is saved at: /etc/letsencrypt/live/app.acme.com/privkey.pem
This certificate expires on 2023-07-04.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment