Securing Web sites with HTTPS protocol gives many advantages along with increasing rankings in search engine optimization (SEO). There are many Certificate Authority which provides SSL/TLS certificates. Some of them are free. Let's Encrypt is a reputable non-profit certificate authority providing certificates at no charge. Let's Encrypt is supported by Certbot software making a certificate creation in easy steps.

The sample is based on Alpine version 3.14.2 with Python 3.9.5 installed. Root user is used to run all commands below.

1. Install Python3 and Pip

Python is needed to run Certbot and install NGINX plugin.

apk add --update python3 py3-pip

2. Install Certbot

apk add certbot

3. Install NGINX plugin

pip install certbot-nginx

4. Generate certificate

certbot --nginx

Follow instructions to create a new certificate.

Resources


Comments

comments powered by Disqus