You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Docker Alpine容器中Nginx无法加载新Certbot证书问题求助

Docker Alpine容器中Nginx无法加载新Certbot证书问题求助

各位大佬好,我碰到个棘手的问题想请教大家:

我目前是在Alpine系统的Docker容器里运行Nginx,用Certbot生成了一个新的证书,命名为my.domain.com-0004。

但当我用mv或者cp命令替换掉旧证书后,网站直接出现SSL协议错误,查看Nginx日志发现它根本找不到证书文件,日志内容如下:

2024/04/22 08:41:34 [error] 46#46: *109 cannot load certificate "/etc/letsencrypt/live//fullchain.pem": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/letsencrypt/live//fullchain.pem, r) error:10000080:BIO routines::no such file) while SSL handshaking, client: 34.32.209.4, server: 0.0.0.0:443

有意思的是,只要把旧证书换回去,一切就又正常了。我也试着重启过容器,但问题依然存在,实在不知道该怎么解决了,求各位指点!

备注:内容来源于stack exchange,提问作者Michał J. Gąsior

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 10:52:59