2011年2月17日星期四

Re: SSL problem failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)

Hi,

> [emerg]: SSL_CTX_use_PrivateKey_file("/root/ssl/site.com.key") failed
> (SSL: error:0B080074:x509 certificate
> routines:X509_check_private_key:key values mismatch)
> configuration file /usr/local/nginx/conf/nginx.conf test failed

make sure to re-read the section about chains:
http://nginx.org/en/docs/http/configuring_https_servers.html#chains

The message basically means that the key in your private key file (nginx
option "ssl_certificate_key") does not work for the _FIRST_ certificate
found in the chain file (nginx option "ssl_certificate").

Possible errors:

- chain in wrong order (own cert first, followed by intermediates)
- wrong private key
- wrong certificate
- corrupted private key file or chain (should all be in ASCII / PEM
container format), also check for broken line endings


Hope this helps,
John

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

没有评论:

发表评论