我正在尝试在 Nginx 上设置 OCSP 装订,因为我进行了测试并且它提出了这个想法,嗯,你知道的。
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;
}
答案1
ssl_trusted_certificate 选项应指向 CA 的根证书和所有中间证书,而不是您的签名证书。NGINX 文档中对此进行了明确说明http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_stapling_verify。有关其他配置示例,请参阅https://blog.kempkens.io/posts/ocsp-stapling-with-nginx/