Welcome! Log In Create A New Profile

Advanced

Re: nginx SSL problem for ca-bundle

June 16, 2010 02:20AM
On Wed, Jun 16, 2010 at 09:19:30AM +0530, karthi r wrote:

> Hi nginx team,
>
> we running nginx + ssl certificate
>
> i configure domain.ca-bundle in nginx
>
> cat domain.ca-bunde >> domainname.crt
>
>
> and configure
>
> ssl_certificate /opt/ssl/domain_com.crt;
> ssl_certificate_key /opt/ssl.key/domain_com.key;
>
> when i restart nginx server following below error displayed.
>
> SSL_CTX_use_PrivateKey_file("../domain com.key") failed (SSL:
> error:0B080074:x509 certificate routines:X509_check_private_key:key values
> mismatch)
>
>
> how to resolve this issue..

http://nginx.org/en/docs/http/configuring_https_servers.html#chains

$ cat www.nginx.com.crt bundle.crt > www.nginx.com.chained.crt

...

If the server certificate and the bundle have been concatenated in the
wrong order, nginx will fail to start and will display the error message:

SSL_CTX_use_PrivateKey_file(" ... /www.nginx.com.key") failed
(SSL: error:0B080074:x509 certificate routines:
X509_check_private_key:key values mismatch)

because nginx has tried to use the private key with the bundle’s first
certificate instead of the server certificate.


--
Igor Sysoev
http://sysoev.ru/en/

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

nginx SSL problem for ca-bundle

karthi r June 15, 2010 11:54PM

RE: nginx SSL problem for ca-bundle

Kevin June 16, 2010 12:40AM

Re: nginx SSL problem for ca-bundle

Igor Sysoev June 16, 2010 02:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 236
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready