LinuxLinux学习之路我用 Linux

Centos下宝塔面板获取免费SSL证书

2019-01-29  本文已影响2人  注水猪肉

【准备】

在运行命令之前,需要先打开 防火墙 上https 443端口

【安装脚本】

yum -y update

wget https://dl.eff.org/certbot-auto

chmod a+x certbot-auto

【加载1】

./certbot-auto

【加载2】

./certbot-auto

【安装配置】由于宝塔安装的环境路径,和lnmp不一样,所以需要重新定向

./certbot-auto --nginx --nginx-server-root=/www/server/nginx/conf

【自动获取证书】

./certbot-auto renew

设置定时任务,省的自己忘记续签给自己造成麻烦
上一篇 下一篇

猜你喜欢

热点阅读