1.在使用nginx处理 https的时候,修改好了 nginx.conf, 使用命令nginx -t查看的时候,出现
cannot load certificate "/usr/local/nginx/conf/xxx_api.xxxxx.com.key": PEM_read_bio_X509_AUX() failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE)
解决方案:
如果开始是用crt和key写成这样的:
ssl_certificate kun.xxxx.com.crt;
ssl_certificate_key kun.xxxx.com.key;
可以改成这样:
首先,安装证书如下图:
ssl_certificate kun.xxxx.com.pem;
ssl_certificate_key kun.xxxx.com.key;
如下:
困扰了我 5天的问题就这么解决了,