-
Notifications
You must be signed in to change notification settings - Fork 0
Certbot
Filip Krzyżanowski edited this page Nov 12, 2022
·
1 revision
sudo apt update && sudo apt upgrade -y
sudo apt install snapd -y
sudo snap install core
sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
You need to replace all domain.com
with your domain name and [email protected]
with your email address
You need to add new certificate for all subdomains!
sudo certbot --apache --agree-tos --redirect -m [email protected] -d domain.com -d www.domain.com
If this is your first certificate on machine you need to agree wih TOS - type Y
and press ENTER