User Tools

Site Tools


certbot_lets_encrypt

Differences

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

Link to this comparison view

Next revision
Previous revision
certbot_lets_encrypt [2022/02/03 23:39] – created vissiecertbot_lets_encrypt [2022/03/09 01:55] (current) vissie
Line 1: Line 1:
 =====Setup===== =====Setup=====
 + https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/
 +  apt-get update
   sudo apt-get install certbot   sudo apt-get install certbot
 +  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.1643960353.txt.gz · Last modified: 2022/02/03 23:39 by vissie