Amazingly enough, there are just 3 commands to activate HTTPS for your current application:
$ sudo apt-get install certbot python-certbot-nginx $ sudo certbot certonly --nginx $ sudo certbot install --nginx
First command installs certbot client and its nginx module (python-certbot-nginx module know how to make changes to your nginx configurations). Second command registers the certificates for all sites found in /etc/nginx/sites-available (or whichever you pick up). The last command makes necessary changes in nginx configuration files for you.
- Lesson #24
- Mar 11, 2020