Welcome! Log In Create A New Profile

Advanced

ssl_password_file on nginx 1.8.0

B.R.
August 08, 2015 11:08AM
Hello,

I cannot manage to load a certificate protected wit ha password on nginx
1.8.0:
[emerg] 2331#0: SSL_CTX_use_PrivateKey_file("/etc/ssl/private/domain.key")
failed (SSL: error:0906406D:PEM routines:PEM_def_callback:problems getting
password error:0906A068:PEM routines:PEM_do_header:bad password read
error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)

The file configured with ssl_password_file is plaintext, restricted to read
rights for root user only (even tried root user + root group).
Shall it be otherwise? Have I missed something?

​I intended to avoid deciphering my private keys using this new capability
of nginx.

I also noted that, dunno if it might be related to my trouble: ​
http://mailman.nginx.org/pipermail/nginx-devel/2014-October/006104.html

$ sudo nginx -v
nginx version: nginx/1.8.0
$ openssl version
OpenSSL 1.0.1k 8 Jan 2015
---
*B. R.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

ssl_password_file on nginx 1.8.0

B.R. August 08, 2015 11:08AM

Re: ssl_password_file on nginx 1.8.0

Valentin V. Bartenev August 10, 2015 07:02AM

Re: ssl_password_file on nginx 1.8.0

B.R. August 10, 2015 06:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
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