Let’s Encrypt Apache on Raspberry Pi

To install let’s encrypt using “Apache on PIP

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo apt install python3 python3-venv libaugeas0
sudo python3 -m venv /opt/certbot/
sudo /opt/certbot/bin/pip install --upgrade pip
sudo /opt/certbot/bin/pip install certbot certbot-apache
sudo ln -s /opt/certbot/bin/certbot /usr/bin/certbot
sudo apt install python3 python3-venv libaugeas0 sudo python3 -m venv /opt/certbot/ sudo /opt/certbot/bin/pip install --upgrade pip sudo /opt/certbot/bin/pip install certbot certbot-apache sudo ln -s /opt/certbot/bin/certbot /usr/bin/certbot
sudo apt install python3 python3-venv libaugeas0
sudo python3 -m venv /opt/certbot/
sudo /opt/certbot/bin/pip install --upgrade pip
sudo /opt/certbot/bin/pip install certbot certbot-apache
sudo ln -s /opt/certbot/bin/certbot /usr/bin/certbot

Next command will ask for:

— e-mail
— space or comma separated domain names
— config file (e.g. 000-default-le-ssl.conf)

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo certbot --apache
sudo certbot --apache
sudo certbot --apache

You can check renewal:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo certbot renew --dry-run
sudo certbot renew --dry-run
sudo certbot renew --dry-run

Leave a Reply

Your email address will not be published.

Yandex.Metrica