运维cheatsheet

ssl证书安装与更新

法一:手动按照服务器厂商指导更新,较繁琐

法二:通过宝塔面板更新:在宝塔-网站- PHP项目里找到对应的SSL证书过期时间,点进去到Let’s Encrypt就行了

法三:安装certbot

# install
sudo dnf install epel-release
sudo dnf install certbot python3-certbot-nginx

# run cert
sudo certbot --nginx -d yourdomain.com

# renew
sudo certbot renew

Leave a comment