Menu

Sunday 2 February 2020

httpd (Apache) Error: systemd-tty-ask-password-agent tool!

******************************************************************
[root@MBox conf.d]# httpd -k start
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.5.128. Set the 'ServerName' directive globally to suppress this message

Broadcast message from root@MBox (Sun 2020-02-02 22:37:10 IST):

Password entry required for 'Enter SSL pass phrase for 192.168.5.128:443 (RSA) :' (PID 4854).
Please enter password with the systemd-tty-ask-password-agent tool!


******************************************************************

[root@MBox conf.d]# httpd -v
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)


Option 1:

Step1: OpenSSL command to remove the passphrase (password)  form private key.

Command:
    openssl rsa -in privatekey-old.key -out privatekey-new.key








Step 2:
Comment below the line in "ssl.conf"

###SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog






Step 3: Add new privatekey-new certifiacte in ssl.conf file.




Step 4: start the httpd(Apache) services.

httpd -k start




Option 2: 

Step 1: Open ssl.conf file.




Step 2: Edit file "/usr/libexec/httpd-ssl-pass-dialog" for  SSLPassPhraseDialog 




Step 3: Comment below a line  &  Add   echo "123456"

*********************
######exec /bin/systemd-ask-password "Enter SSL pass phrase for $1 ($2) : "
*********************

Where,
123456 is a password for private key.





Step 4: Start the httpd(Apache) services.

httpd -k start





Thanks :-)







No comments:

Post a Comment