Difference between revisions of "Certbot"

From Wiki
Jump to: navigation, search
(No difference)

Revision as of 18:24, 6 July 2020

Create new cert:

./letsencrypt-auto --debug -a standalone -d www.example.com certonly

To manually verify a cert you can use the following command.

cd /opt/letsencrypt
./letsencrypt-auto --agree-dev-preview --server https://acme-v01.api.letsencrypt.org/directory -a manual -d <domain> certonly

This will prompt you to create a text file on the server to be verified.

cd /var/www
printf "%s" <string> > <file>

Renewing a cert simply requires you to run the client again.

/opt/letsencrypt/letsencrypt-auto renew
cd /opt/letsencrypt
set domain='example.com'
screen ./letsencrypt-auto -a manual -d ${domain} -d www.${domain} certonly --debug