我正在尝试在Nginx上设置OCSP装订,因为我运行了一个testing,它提出了这个想法。
https://sslcheck.globalsign.com/en_GB/sslcheck?host=aj2jewellers.co.uk#176.58.103.165
我收到错误:
nginx: [warn] "ssl_stapling" ignored, no OCSP responder URL in the certificate
这是我的.conf的相关位
server { # use Google's DNS resolver 8.8.4.4 8.8.8.8 valid=300s; resolver_timeout 10s; ssl_stapling on; ssl_stapling_verify on; ## verify chain of trust of OCSP response using Root CA and Intermediate certs ssl_trusted_certificate /pathtossl/www.aj2jewellers.co.uk.crt; }
ssl_trusted_certificate选项应该指向CA的根证书和所有中间证书,而不是您的签名证书。 这在NGINX文档http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_stapling_verify中已经明确。 有关其他configuration示例,请参阅https://blog.kempkens.io/posts/ocsp-stapling-with-nginx/