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

证书错误:
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,然后重启一下nginx,之后再保存即可。