Guangning Yu's Blog
Home
Code
Data
Setup
Industry
MachineLearning
Archive
Create Free SSL/TLS Certificates using Certbot
2019-02-24 12:50:01
# Install ``` sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install certbot python-certbot-nginx ``` # Setup Running this command will get a certificate for you and have Certbot edit your Nginx configuration automatically to serve it. ``` sudo certbot --nginx ``` ``` # for a specific domain name sudo certbot --nginx -d example.com ``` # Renew The Certbot packages on your system come with a cron job that will renew your certificates automatically before they expire. You can test automatic renewal for your certificates by running this command: ``` sudo certbot renew --dry-run ```
Previous:
Expand the EBS root volume of EC2 Linux instance
Next:
Docker Basics