http 前端报错证书

学习笔记 yekong

最近查看站点错误日志,看到很多错误日志,排查发现是证书的问题。

2022/11/10 00:10:50 [error] 1571#0: *19898 open() "/.well-known/acme-challenge/d1EIP_XdqA0MoI3pWT69NnHCFgtQqIllP4BdOC29J4c" failed (2: No such file or directory), client: 23, server: , request: "GET /.well-known/acme-challenge/d1EIP_XdqA0MoI3pWT69NnHCFgtQqIllP4BdOC29J4c HTTP/1.1", host: "", referrer: "/.well-known/acme-challenge/d1EIP_XdqA0MoI3pWT69NnHCFgtQqIllP4BdOC29J4c"
2022/11/10 06:47:57 [crit] 1571#0: *21780 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 138.68.72.140, server: 0.0.0.0:443

把证书 .pem 换成 .crt 成功解决

喜欢