Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
tips:ssl [2019/02/22 14:55] – [certbot] scipiotips:ssl [2021/06/17 08:05] – [certbot] scipio
Line 8: Line 8:
  
 <code> <code>
 +snap install --classic certbot
 +
 +# or for focal pre
 add-apt-repository ppa:certbot/certbot add-apt-repository ppa:certbot/certbot
 apt-get update apt-get update
Line 17: Line 20:
 </code> </code>
  
 +wildcard 
 +<code> 
 +certbot certonly \ 
 + --manual \ 
 + --preferred-challenges=dns \ 
 + --email stefano.scipioni@csgalileo.org \ 
 + --server https://acme-v02.api.letsencrypt.org/directory \ 
 + --agree-tos -d *.iotaiuto.it 
 +</code>
 ==== nginx ==== ==== nginx ====
  
Line 42: Line 53:
     server_name nnextcloud.csgalileo.org;     server_name nnextcloud.csgalileo.org;
          
 +    ssl_certificate /etc/letsencrypt/live/nextcloud.csgalileo.org/fullchain.pem;
 +    ssl_certificate_key /etc/letsencrypt/live/nextcloud.csgalileo.org/privkey.pem;
 +  
 } }
 </file> </file>
 +
 +renew
 +<code>
 +certbot renew [--dry-run]
 +</code>
 +
 +automatic renew
 +<code>
 +systemctl status certbot.service
 +</code>
 +
 +/etc/letsencrypt/cli.ini
 +<code>
 +max-log-backups = 0
 +deploy-hook = systemctl reload nginx
 +</code>
 ===== acme.sh integration for letsencrypt ===== ===== acme.sh integration for letsencrypt =====
  
  • tips/ssl.txt
  • Last modified: 2022/06/22 07:15
  • by sscipioni