﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
834	Nginx failing to ask for PEM SSL key password	lakarjail@…		"While starting/restarting nginx with ""service nginx start"", no password is asked on the terminal and nginx fails to start.

By checking journalctl, I receive the following error :
{{{

nov. 17  ... systemd[1]: Failed to reset devices.list on /system.slice/nginx.service: No 
nov. 17 ... nginx[1441]: Enter PEM pass phrase:
nov. 17  ... nginx[1441]: nginx: [emerg] SSL_CTX_use_PrivateKey_file(""/etc/nginx/ssl/mykeycert"") failed (SSL: error:0906406D:PEM routines:PEM_def_callback:problems getting password error:0906A
nov. 17 ... nginx[1441]: nginx: configuration file /etc/nginx/nginx.conf test failed
nov. 17 ... systemd[1]: nginx.service: control process exited, code=exited status=1
nov. 17 ... systemd[1]: Failed to start A high performance web server and a revers
}}}
The nginx server fail to start because no password is provided, however no password is required when starting it with service or /etc/init.d/.

Please note that :
1. nginx server starts  correctly in command line (#nginx ), not using service. SSL configuration (like file locations and permissions seems therefore correct). Password is -that way- asked on terminal.
2. when doing the same SSL configuration with Apache2, the password is well required when starting/restarting Apache2 server with ""service apache2 start"".

How could I fix it please ? Is there a way to compare nginx and apache2 service files to understand why no password is asked when starting nginx, but actually is when starting apache2 ? 

Thank you in advance for your help."	defect	closed	minor		nginx-core	1.6.x	invalid	ssl key pem		"Linux - 2.6.32-042stab111.11 #1 SMP Tue Sep 1 18:19:12 MSK 2015 x86_64 GNU/Linux
"	"nginx version: nginx/1.6.2
"
