Skip to content

Instantly share code, notes, and snippets.

@granbom
Last active June 14, 2018 02:47
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 granbom/f6b5ba8a68e4e8a2a8d085d253ad898d to your computer and use it in GitHub Desktop.
Save granbom/f6b5ba8a68e4e8a2a8d085d253ad898d to your computer and use it in GitHub Desktop.
certbot
certbot certonly --webroot -w /var/www/example/ -d www.example.com -d example.com
certbot certonly --webroot -w /var/www/example/ -d example.com -d www.example.com --post-hook="service nginx reload"
certbot certificates
# windows
certbot certonly --manual --preferred-challenges http -d example.com -d www.example.com
openssl pkcs12 -inkey privkey.pem -in cert.pem -in fullchain.pem -export -out example.pfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment