satellite-installer fails with the error Enter pass phrase:Apache:mod_ssl:Error: Private key not found.
Environment
- Red Hat Satellite 6.x
Issue
- Failed to configure Red Hat Satellite Server with a Custom Server Certificate:
Enter pass phrase:Apache:mod_ssl:Error: Private key not found.'
Resolution
- Disable the passphrase in the private key for the ssl cert:
openssl rsa -in /root/<Private key> -out /root/<New Private Key file>
Root Cause
- The private key has passphrase which caused the Apache HTTP Server failed to start.
Diagnostic Steps
- Below error is found in
/var/log/foreman-installer/satellite.log:
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:27 satellite.example.com systemd[1]: Stopped The Apache HTTP Server.
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:27 satellite.example.com systemd[1]: Starting The Apache HTTP Server...
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com httpd[4628]: Apache/2.4.6 mod_ssl (Pass Phrase Dialog)
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com httpd[4628]: Some of your private key files are encrypted for security reasons.
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com httpd[4628]: In order to read them you have to provide the pass phrases.
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com httpd[4628]: Server satellite.example.com:443 (RSA)
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com httpd[4628]: Enter pass phrase:Apache:mod_ssl:Error: Private key not found.
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com httpd[4628]: **Stopped
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com kill[4630]: kill: cannot find process ""
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com systemd[1]: httpd.service: control process exited, code=exited status=1
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com systemd[1]: Failed to start The Apache HTTP Server.
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com systemd[1]: Unit httpd.service entered failed state.
[ERROR 2018-09-12T04:18:10 main] Sep 12 04:12:28 satellite.example.com systemd[1]: httpd.service failed.
SBR
Product(s)
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.