参考:certbot-auto安装https证书报错: certificate verify failed - 翟码农技术博客
cannot load certificate ".../SS.crt":BIO_new_file()(SSL:system library:fopen:No such file or directory:fopen(".../SS.crt"),'r') BIO routines:BIO_new_file:no such file
解决:将证书放在与nginx.conf同一目录下
SSLError:HTTPSConnectionPool(host='',port=):Max retries exceeded with url:...(Caused by SSLError(SSLError(1,u'[SSL:CERTIFICATE_VERIFY_FAILED] certificate verify failed (...)'),))
解决:服务器时间必须更改为当前时间
设置服务器时间:date -s "2021-12-31 14:32:00"
HTTPSConnectionPool(host='1.1.1.1', port=445): Max retries exceeded with url: ...(Caused by SSLError(SSLCertVerificationError("hostname '1.1.1.1' doesn't match '2.2.2.2'")))
思路:当前服务器ip是1.1.1.1,但配置的证书是2.2.2.2的证书,导致证书认证失败。
解决:使用1.1.1.1证书覆盖nginx中错误证书,然后重启nginx