Obtain SSL certificate for Server

1. Install certbot

apt-get install certbot

2. Obtain certificate only

certbot -d <domainname> --manual --preferred-challenges dns certonly

3. Besure to add _acme-challenge and it’s value on DNS management

4. The certificate and key files will be saved at following location. Please move it to appropriate location if changes have been made.

Certificate is saved at: /etc/letsencrypt/live/<domain name>/fullchain.pem
Key is saved at: /etc/letsencrypt/live/<domain name>/privkey.pem

*Certificate can be renamed to *.crt, Key can be renamed to *.key.

Source: https://serverfault.com/questions/829443/how-can-i-get-a-lets-encrypt-certificate-for-a-non-public-facing-server

Author

Leave a Reply

Your email address will not be published. Required fields are marked *