分類彙整: Linux

Ubuntu 20.04 在apache上安裝ssl憑證

sudo apt install python3-certbot-apache

sudo certbot --apache -d my.domain

定時更新憑證
sudo crontab -e
30 4 1,21 * * /usr/bin/certbot renew –dry-run

sudo certbot certonly –server https://acme-v02.api.letsencrypt.org/directory –manual –preferred-challenges dns -d ‘*.lifenet.com.tw’
sudo certbot certonly –server https://acme-v02.api.letsencrypt.org/directory –webroot –preferred-challenges dns -d ‘*.lifenet.com.tw’