Welcome! Log In Create A New Profile

Advanced

Re: Nginx failing to ask for PEM SSL key password

Francis Daly
November 18, 2015 01:52PM
On Wed, Nov 18, 2015 at 03:40:51PM +0000, Francis Daly wrote:
> On Wed, Nov 18, 2015 at 09:31:36AM -0500, lakarjail wrote:
> > Francis Daly Wrote:
> > -------------------------------------------------------
> > > On Wed, Nov 18, 2015 at 04:34:20AM -0500, lakarjail wrote:

Hi there,

> > However the password requirement phase is not displayed using nginx debian
> > service, though it is displayed with Apache service and its ssl_mod thanks
> > to the method I was previously mentioning.

> > a) I was just wondering (trying to understand understand) if there was any
> > reason regarding why it does't work, and, in case was not implemented/made
> > it available on purpose, why this option was chosen not to be implemented.

> Apache SSLPassPhraseDialog defaults to "builtin", which is the same as
> what nginx uses, I believe.

A bit more googling suggests that perhaps your apache configuration uses
SSLPassPhraseDialog configured to exec the tool systemd-ask-password,
which is the thing that you type the passphrase in to.

If so:

stock nginx does not support that.

There are three options I see that you could try.

* don't use stock nginx.

This could be "don't use nginx at all", or "use a patched version which
does let you exec() to find the passphrase".

* don't use systemd to launch nginx

Any "service" launcher is used because it brings some benefits. I
think that the main ones are: it runs as root, so you don't have to;
it auto-starts the service on boot or on demand; it auto-re-starts the
service if it exits uncleanly. There presumably are more benefits too,
which can be enumerated and considered.

Since you have to be there to type the password, numbers 2 and 3 do not
apply. And if you were happy to go this route, number 1 might be worked
around by other means such as sudo -- the details could be worked out
if you wanted this.

* write or use a wrapper script for nginx, which systemd can use

I do not know if this exists already. If it does, hurray. Basically, the
script would ask you for the password (or passwords, in sequence?) and
then feed them to nginx when requested. I do not know if the architecture
of systemd and nginx makes this possible -- someone to whom it is
important would arrange that the testing happens.

Good luck with it,

f
--
Francis Daly francis@daoine.org

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

Nginx failing to ask for PEM SSL key password

lakarjail November 17, 2015 03:13PM

Re: Nginx failing to ask for PEM SSL key password

Richard Stanway November 17, 2015 04:26PM

Re: Nginx failing to ask for PEM SSL key password

lakarjail November 18, 2015 04:34AM

Re: Nginx failing to ask for PEM SSL key password

itpp2012 November 18, 2015 05:29AM

Re: Nginx failing to ask for PEM SSL key password

lakarjail November 18, 2015 06:22AM

Re: Nginx failing to ask for PEM SSL key password

itpp2012 November 18, 2015 07:09AM

Re: Nginx failing to ask for PEM SSL key password

Francis Daly November 18, 2015 08:20AM

Re: Nginx failing to ask for PEM SSL key password

lakarjail November 18, 2015 09:31AM

Re: Nginx failing to ask for PEM SSL key password

Francis Daly November 18, 2015 10:42AM

Re: Nginx failing to ask for PEM SSL key password

Francis Daly November 18, 2015 01:52PM

Re: Nginx failing to ask for PEM SSL key password

Aleksandar Lazic November 18, 2015 05:04PM

Re: Nginx failing to ask for PEM SSL key password

B.R. November 19, 2015 05:58AM

Re: Nginx failing to ask for PEM SSL key password

Valentin V. Bartenev November 19, 2015 08:42AM

Re: Nginx failing to ask for PEM SSL key password

nanaya November 19, 2015 09:48AM

Re: Nginx failing to ask for PEM SSL key password

Aleksandar Lazic November 19, 2015 02:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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