我分别运行了这两个命令:
openssl dhparam -dsaparam -out ./certs/dhparam.pem 4096
openssl req -x509 -nodes \
-days 965 -newkey rsa:2048 \
-keyout ./certs/nginx-selfsigned.key -out ./certs/nginx-selfsigned.crt
我将它们复制到我的 NGINX 服务器,当我启动 NGINX 时,我得到:
2019/06/12 01:33:47 [warn] 1#1: "ssl_stapling" ignored, issuer certificate not found for certificate
“/etc/ssl/certs/nginx-selfsigned.crt” nginx:[警告]“ssl_stapling”被忽略,未找到证书“/etc/ssl/certs/nginx-selfsigned.crt”的颁发者证书
有人知道这是怎么回事吗?我不知道该如何避免这种情况?
答案1
这是一个 SSL 证书验证,由于您使用的是自签名证书,因此此验证将不起作用。参考文献: