Letâs Encrypt is an automated, open certificate authority that offers free TLS/SSL certificates for the publicâs benefit. The service is provided by the Internet Security Research Group (ISRG). This tutorial shows how to install a Let's Encrypt SSL certificate on the One-Click WordPress app using the certbot installation wizard. After completing this tutorial, the WordPress site will have a valid certificate and the nginx webserver will redirect all HTTP requests to HTTPS.
This tutorial assumes that you have already deployed a One-Click WordPress app, have a domain name pointing to your server IP address, and you are logged in as root.
SSH to the server as root and run certbot. Here's an example:
# certbot --nginx --redirect -d example.com -d www.example.com -m firstname.lastname@example.org --agree-tos
This command explained:
-d example.com -d www.example.com
certbot --help for more information. See the Certbot FAQ for more information about SAN certificates.
Let's Encrypt certificates are valid for 90 days. The certbot wizard updates the systemd timers and crontab to automatically renew your certificate.
Verify the timer is active.
# systemctl list-timers | grep 'certbot\|ACTIVATES'
Verify the crontab entry exists.
# ls -l /etc/cron.d/certbot
Verify the renewal process works with a dry run.
# certbot renew --dry-run
If you have an older version of One-Click WordPress, you may need to install certbot. To download and install the certbot package:
# sudo add-apt-repository ppa:certbot/certbot # sudo apt-get update # sudo apt-get install python-certbot-nginx