Hello everyone! I’m new here on the forum, sorry if I wrote something
down
incorrectly.
I am trying to run Nginx on Windows Server 2008 with SSL Certificate but
always throws an error in the log file and it will not start the
process.
I’ve been reading on some forums, they said I had to configure to run
without passphrase. In all places I researched just found issue related
to
Linux giving the “openssl” command, but I am using Windows server.
Thanks!
Posted at Nginx Forum:
On Wed, Oct 29, 2014 at 09:13:19AM -0400, krlosgilson wrote:
Hi there,
Hello everyone! I’m new here on the forum, sorry if I wrote something down
incorrectly.
I am trying to run Nginx on Windows Server 2008 with SSL Certificate but
always throws an error in the log file and it will not start the process.
If the error in the log file does not make it clear to you how it can
be fixed, perhaps it can make it clear to someone else.
I imagine that if you paste the error message into a search engine,
it will probably show someone else (hopefully) solving the same problem.
If that doesn’t work, sharing the error message on this list might help.
Cheers,
f
Francis D. [email protected]
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:
On Wed, Oct 29, 2014 at 11:31:41AM -0400, krlosgilson wrote:
Hi there,
I do not know the fix, but…
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
that message appears on the page at
Configuring HTTPS servers,
which suggests that either your key and your cert flies are not a
matched
pair; or your cert file does not have your cert as the first entry.
Might either of those be the case for you?
f
Francis D. [email protected]