SSL via Certbot - smangukiya/odoo-tutorial-1 GitHub Wiki

  • root@ymc:~# sudo certbot --nginx -d --noninteractive --agree-tos --email --redirect

    • Saving debug log to /var/log/letsencrypt/letsencrypt.log
    • Plugins selected: Authenticator nginx, Installer nginx
    • Obtaining a new certificate
    • Performing the following challenges:
    • http-01 challenge for california.yourmedcart.com
    • Waiting for verification...
    • Cleaning up challenges
    • Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/odoo2
    • Redirecting all traffic on port 80 to ssl in /etc/nginx/sites-enabled/odoo2

  • Congratulations! You have successfully enabled

  • https://

  • You should test your configuration at:

  • https://www.ssllabs.com/ssltest/analyze.html?d=


  • IMPORTANT NOTES:

    • Congratulations! Your certificate and chain have been saved at:
  • /etc/letsencrypt/live//fullchain.pem

  • Your key file has been saved at:

  • /etc/letsencrypt/live//privkey.pem

  • Your cert will expire on 2021-03-13. To obtain a new or tweaked

  • version of this certificate in the future, simply run certbot again

  • with the "certonly" option. To non-interactively renew all of

  • your certificates, run "certbot renew"

    • If you like Certbot, please consider supporting our work by:
  • Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate

  • Donating to EFF: https://eff.org/donate-le

Another example: sudo certbot --nginx -d sudo certbot renew --dry-run

Another example sudo certbot --nginx -d

Reference: https://medium.com/@othmane.ghandi/running-odoo-in-https-using-nginx-certbot-90ef2f3e5ccb