三丰云安装宝塔面板无法获取Let’s Encrypt证书的解决方法

2023-06-1420:36:23网站管理维护Comments1,028 views字数 525阅读模式

使用三丰云的免费云服务器搭配宝塔面板做环境测试的时候发现有时服务器无法获取Let's Encrypt的证书;这其实是在安装面板时,没有成功下载certbot-auto,导致无法正常获取Let's Encrypt证书,这个问题可以手动下载安装来解决。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/47094.html

卸载可能损坏的epel源(若确定epel源没问题,可跳过):文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/47094.html

yum remove epel-release -y

下载脚本:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/47094.html

wget -O /www/server/panel/certbot-auto http://download.bt.cn/install/certbot-auto.init -T 5

安装依赖(安装过程可能耗时比较长,大概需要5-10分钟,请耐心等待):文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/47094.html

chmod +x /www/server/panel/certbot-auto && /www/server/panel/certbot-auto -n

提示以下内容,说明安装成功文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/47094.html

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Missing command line flags. For non-interactive execution, you will need to specify a plugin on the comm
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/47094.html
  • 本站内容整理自互联网,仅提供信息存储空间服务,以方便学习之用。如对文章、图片、字体等版权有疑问,请在下方留言,管理员看到后,将第一时间进行处理。
  • 转载请务必保留本文链接:https://www.cainiaoxueyuan.com/wg/47094.html

Comment

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定