Apache 上的 SSL 配置
SSLEngine On
SSLCertificateFile /etc/ssl/domain.crt
SSLCertificateKeyFile /etc/ssl/domain.key
效果很好
Nginx的:
ssl on;
ssl_certificate /etc/ssl/domain.crt;
ssl_certificate_key /etc/ssl/domain.key;
curl
给出:
* SSL certificate problem: Invalid certificate chain
* Curl_http_done: called premature == 1
* Closing connection 0
curl: (60) SSL certificate problem: Invalid certificate chain
铬 说:
net::ERR_CERT_DATE_INVALID
我的 nginx 配置有问题吗?