Difference between revisions of "Letsencrypt Certificates"

From Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
Create new cert:
 
Create new cert:
  ./letsencrypt-auto --debug -a standalone -d www.example.com certonly
+
  certbot -a standalone -d www.example.com certonly
  
To manually verify a cert you can use the following command.
+
Create cert using www authentication:
 +
certbot --server https://acme-v01.api.letsencrypt.org/directory -a manual -d <domain> certonly
  
cd /opt/letsencrypt
+
Renew cert using DNS authentication:
./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'
 
  set domain='example.com'
  screen ./letsencrypt-auto -a manual -d ${domain} -d www.${domain} certonly --debug
+
  certbot certonly -d host.example.com-a manual --preferred-challenges dns
  
 
Docs:
 
Docs:
  
 
https://community.letsencrypt.org/t/quick-start-guide/1631
 
https://community.letsencrypt.org/t/quick-start-guide/1631

Latest revision as of 18:29, 6 July 2020

Create new cert:

certbot -a standalone -d www.example.com certonly

Create cert using www authentication:

certbot --server https://acme-v01.api.letsencrypt.org/directory -a manual -d <domain> certonly

Renew cert using DNS authentication:

set domain='example.com'
certbot certonly -d host.example.com-a manual --preferred-challenges dns

Docs:

https://community.letsencrypt.org/t/quick-start-guide/1631