Article

  • 8 days

    8 days

    YetiShare / Core

    16

How to Install LetsEncrypt Free SSL Certs on Ubuntu & VestaCP

Install Details:

Step 1: Open your SSH console, as root, and run the following commands
Step 2: wget http://dl.mycity.tech/vesta/generate_ssl -O /usr/local/bin/generate_ssl
Step 3: chmod u+x /usr/local/bin/generate_ssl
Step 4: generate_ssl vestacp_username domainname
i.e.: generate_ssl admin yoursite.com
Step 5: Login VestaCP control Panel and enable ssl

Automate renewals:

apt-get install certbot
crontab -e


Paste:
15 3 * * * /usr/bin/certbot renew --quiet


Troubleshooting:

- If you receive a "Challenge failed for domain" error, ensure there are no old certs in "/home/admin/conf/web".
- If you receive other errors, ensure any alias domains listed in VestaCP (for example the www. version of the subdomain) has DNS pointing at the server.