Bug 2170808

Summary: Running nginx with systemctl and entering ssl private key's pass phrase
Product: Red Hat Enterprise Linux 9 Reporter: lpellegr
Component: nginx-1.22-moduleAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED ERRATA QA Contact: icesalov
Severity: low Docs Contact: Lenka Špačková <lkuprova>
Priority: unspecified    
Version: 9.3CC: icesalov, luhliari
Target Milestone: rcKeywords: AutoVerified, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
.A new `ssl_pass_phrase_dialog` directive in `nginx:1.22` With this update to the `nginx:1.22` module stream, you can use the new `ssl_pass_phrase_dialog` directive to configure an external program that is called at `nginx` start for each encrypted private key. To use the new directive, add one of the following lines to the `/etc/nginx/nginx.conf` file: * To call an external program for each encrypted private key file, enter: + ---- ssl_pass_phrase_dialog exec:<path_to_program>; ---- + `nginx` calls this program with the following two arguments: + ** The server name specified in the `server_name` setting. ** One of the following algorithms: `RSA`, `DSA`, `EC`, `DH`, or `UNK` if a cryptographic algorithm cannot be recognized. * If you want to manually enter a passphrase for each encrypted private key file, enter: + ---- ssl_pass_phrase_dialog builtin; ---- + This is the default behavior if `ssl_pass_phrase_dialog` is not configured. + Note that the `nginx` service fails to start if you use this method but have at least one private key protected by a passphrase. In this case, use one of the other methods. * If you want `systemd` to prompt for the passphrase for each encrypted private key when you start the `nginx` service by using the `systemctl` utility, enter: + ---- ssl_pass_phrase_dialog exec:/usr/libexec/nginx-ssl-pass-dialog; ---- Note that the `ssl_pass_phrase_dialog` directive in `nginx` is similar to the `SSLPassPhraseDialog` directive in the Apache HTTP Server.
Story Points: ---
Clone Of:
: 2213480 (view as bug list) Environment:
Last Closed: 2023-11-07 08:37:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2213480    

Comment 12 Luboš Uhliarik 2023-08-07 11:38:58 UTC
*** Bug 2213480 has been marked as a duplicate of this bug. ***

Comment 27 errata-xmlrpc 2023-11-07 08:37:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (nginx:1.22 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:6562