首次在服务器上安装证书时出现CertBot错误

2025-08-28 05:30:02 18
  • 收藏
  • 管理

    嗨,我在安装certbot的证书时遇到了问题。

    到目前为止,我的机器上没有SSL。我现在想要改变这一点。

    还创建了所需域的证书。然而,certbot没有改变阿帕奇配置中的任何东西。既没有用于SSL的vhost,也没有基本设置(密码等)都成立了。

    /var/log/letsENCRYPT/letsENCRYPT.log

    `2017-07-05 03:41:03,227:DEBUG:certbot.store:正在写入新的配置/etc/letscrypt/renewal/mydomain.de.conf。

    2017-07-05 03:41:03,228:DEBUG:certbot.记者:报告给用户:祝贺!您的证书和链已保存在/etc/letsencrypt/live/mydomain.de/fullchain.pem.您的证书将于2017-10-03到期。要在将来获得该证书的新版本或调整后的版本,只需使用“certonly”选项再次运行certbot-auto即可。要以非交互方式续订所有证书,请运行“certbot-Auto Renew”

    2017-07-05 03:41:03,242:DEBUG:certbot.Reverter:创建/etc/apache2/sites-enabled/www_mydomain_de-le-ssl.conf的备份

    2017-07-05 03:41:03,254:INFO:certbot_apache.configurator:Created an SSLvhost at/etc/apache2/sites-enabled/www_mydomain_de-le-ssl.conf

    2017-07-05 03:41:03,298:INFO:certbot_apache.configurator:Enabled APACHE SSL模块

    2017-07-05 03:41:03,342:WARNING:certbot_apache.parser:Error检查参数列表:/etc/apache2/sites-enabled/www_mydomain_de-le-ssl.conf:第12行语法错误

    SSL认证文件:文件‘/etc/apache2/sert_cert_file_path’不存在或为空

    2017-07-05 03:41:03,344:DEBUG:certbot.error_handler:Encountered异常:

    回溯(最近一次呼叫):

    在Deploy_“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/client.py”,中提交部署证书行439

    全链路径=全链路径)

    文件部署证书第250行,位于“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/configurator.py”,_cert中

    Self.preparate_server_https(“443”)

    文件服务器“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/configurator.py”,第709行,位于准备服务器HTTPS中

    Self.preparate_HTTPS_MODULES(临时)

    准备“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/configurator.py”,_HTTPS_MODULES中的第803行文件

    Self.able_mod(“ssl”,temp=temp)

    文件启用模式中的第1772行“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/configurator.py”,

    Self.parser.UPDATE_RUNTIME_Variables()

    文件“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/parser.py”,第109行,在UPDATE_RUNTIME_VARIALES中

    Stdout=sel._get_run_cfg()

    文件“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/parser.py”,第154行,in_Get_Runtime_cfg

    “阿帕奇无法检查该模块是否为”

    错误配置错误:由于配置错误,因此Apache无法检查模块是否已加载。

    2017-07-05 03:41:03,344:DEBUG:certbot.error_handler:Calling注册函数

    2017-07-05 03:41:03,381:DEBUG:certbot.记者:报告用户:无法安装证书

    2017-07-05 03:41:03,381:调试:certbot.log:异常退出:

    回溯(最近一次呼叫):

    文件“/root/.local/share/letsencrypt/bin/letsencrypt”,第11行,在

    Sys.exit(main())

    文件“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py”,第743行,在Main中

    返回config.func(配置、插件)

    运行中的文件“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py”,第604行

    _INSTALL_CERT(配置、LE_CLIENT、DOMAINS、NEW_LINEAGE)

    文件安装证书第469行,in_“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py”,_cert

    路径提供者.cert_路径、路径提供者.chain_路径、路径提供者.fullchain_路径)

    在Deploy_“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/client.py”,中提交部署证书行439

    全链路径=全链路径)

    文件部署证书第250行,位于“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/configurator.py”,_cert中

    Self.preparate_server_https(“443”)

    文件服务器“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/configurator.py”,第709行,位于准备服务器HTTPS中

    Self.preparate_HTTPS_MODULES(临时)

    准备“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/configurator.py”,_HTTPS_MODULES中的第803行文件

    Self.able_mod(“ssl”,temp=temp)

    文件启用模式中的第1772行“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/configurator.py”,

    Self.parser.UPDATE_RUNTIME_Variables()

    文件“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/parser.py”,第109行,在UPDATE_RUNTIME_VARIALES中

    Stdout=sel._get_run_cfg()

    文件“/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/parser.py”,第154行,in_Get_Runtime_cfg

    “阿帕奇无法检查该模块是否为”

    错误配置错误:由于配置错误,因此Apache无法检查模块是否已加载。

    `

    如果我复制以前的vhost副本并进行相应的更改(端口80->443,SSLEngine打开,SSLcerficateFile,SSLcerficateKeyFile和SSLcertifateChainFile),我会重新启动Apache错误消息。

    我现在可以/应该做什么,以便也可以通过HTTPS访问我的域?

    提前感谢您的帮助。

    快堆

    PS:对不起,我的英语不好:-/,fbr80:

    2017-07-05 03:41:03,342:WARNING:certbot_apache.parser:Error检查参数列表:/etc/apache2/sites-enabled/www_mydomain_de-le-ssl.conf:第12行语法错误

    SSL认证文件:文件‘/etc/apache2/sert_cert_file_path’不存在或为空

    Fbr80:

    错误配置错误:由于配置错误,因此Apache无法检查模块是否已加载。

    你能展示一下/etc/apache2/sites-enabled/www_mydomain_de-le-ssl.conf的第12行吗?Hi Rg305,

    伊芙解决了我的问题。

    第12行中没有任何内容,它是一个注释行…

    不管怎样谢谢你。

    快堆

    上一页:首次续订证书时出现的DNS问题 下一页:首次在Windows上使用SSL
    全部评论(0)