Skip to content

Instantly share code, notes, and snippets.

@alejandromav
Last active March 30, 2021 11:16
Show Gist options
  • Save alejandromav/9f88566fc79ad366e99f30da51d2d204 to your computer and use it in GitHub Desktop.
Save alejandromav/9f88566fc79ad366e99f30da51d2d204 to your computer and use it in GitHub Desktop.
Certbot certificates generation

Install certbot

sudo apt update
sudo apt install certbot

Generate certificate with DNS challenge

sudo certbot certonly --manual --preferred-challenges dns -d <domain.com>

Copy generated certificates

sudo -i
cp /etc/letsencrypt/live/<domain.com>/* /home/user/

Generate PFX

openssl pkcs12 -export -in fullchain.pem -inkey privkey.pem -out <domain-com>-cert-fullchain.pfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment