拿到证书后,去宝塔界面布置ssl,这时候出现错误信息
nginx version: nginx/1.24.0 nginx: [emerg] ssl_ctx_use_privatekey("/www/server/panel/vhost/cert/8.154.37.76/privkey.pem") failed (ssl: error:0b080074:x509 certificate routines:x509_check_private_key:key values mismatch) nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
这时候要去xshell后台找到nginx存放ssl的目录
/etc/ssl
把三个证书文件上传,命令行输入
cat certificate.crt ca_bundle.crt > certificates.crt
这时候会多出来一个certificates.crt
去宝塔ssl证书把privatkey和新出来的certificates.crt内容上传即可实现ip安全访问
评论 (0)