今天收到邮件提示网站ssl证书错误,在阿里云申请新的证书后,在宝塔里更换key和pem,保存时提示证书错误:

宝塔面板nginx提示证书错误:nginx: [emerg] BIO_new_file(“/etc/letsencrypt/live//fullchain.pem”) failed处理方法-风君子博客
证书错误:
nginx: [emerg] BIO_ new_ file(' /etc/letsencr
ypt/live/jinyuda.com.cn/fullchain.pem") fai
led (SSL: error:02001002:system library.fop
en:No such file or directory:fopen(/etc/let
sencrypt/live/jinyuda.com.cn/fullchain.pe
m','r') error:2006D080:BIO routines:BIO_ ne
W_ file:no such file)
nginx: configuration file /www/server/ngin
x/conf/nginx.conf test failed
 

这个的处理方法也是特别简单的:

先点击关闭SSL,然后重启一下ngingx,之后再保存即可。