安裝憑證完整說明: https://certbot.eff.org/instructions?ws=apache&os=centosrhel7
精簡版如下:(請一行一行貼上執行,若用root身份登入,可省略 sudo
)
sudo yum install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot --apache
sudo certbot renew --dry-run