Nginx on Windows Server 2008 with SSL

krlosgilson nginx-forum at nginx.us
Wed Oct 29 15:31:41 UTC 2014


the error in the log file is this:

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

Have you tried running the commenting ssl_certificate_key line with a # and
the error that appears is this:

no "ssl_certificate_key" is defined for the "ssl" directive in
C:\nginx/conf/nginx.conf:121

The conf file is well:

server {
listen 443;

ssl on;
ssl_certificate c:/nginx/ssl/SSL.pem;
ssl_certificate_key c:/nginx/ssl/key.key;

server_name localhost;
access_log c:/nginx/logs/ssl_access.log;
error_log c:/nginx/logs/ssl_error.log;
location / {
root html;
index index.php;
}
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254403,254413#msg-254413



More information about the nginx mailing list