User Tools

Site Tools


certbot_lets_encrypt

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
certbot_lets_encrypt [2022/03/09 00:51]
vissie
certbot_lets_encrypt [2022/03/09 01:55] (current)
vissie
Line 5: Line 5:
   apt-get install python3-certbot-nginx   apt-get install python3-certbot-nginx
      
-  +  vim/etc/nginx/conf.d/www.example.com.conf 
 +<sxh bash; gutter: false> 
 +server { 
 +    listen 80 default_server; 
 +    listen [::]:80 default_server; 
 +    root /var/www/html; 
 +    server_name example.com www.example.com; 
 +
 +</sxh>   
 + 
 +  sudo systemctl restart nginx 
 ====Add domain==== ====Add domain====
-  certbot certonly --standalone -d new.sub.domain.io+  sudo certbot --nginx -d example.com
 ====Renew all==== ====Renew all====
   sudo certbot renew   sudo certbot renew
 +====Automatically Renew Let’s Encrypt Certificates====
 +  sudo crontab -e
 +<sxh bash; gutter: false>  
 +  0 12 * * * /usr/bin/certbot renew --quiet
 +</sxh>  
certbot_lets_encrypt.txt · Last modified: 2022/03/09 01:55 by vissie