httpd fails to start after installing capsule in FIPS mode
Steps to Reproduce:
1. install katello server in fips mode
2. try to install capsule in fips mode
the installer on capsule fails, the httpd fails with
AH02252: incomplete client cert configured for SSL proxy (missing or encrypted private key?)
capsule installed as expected
Combining "Note: Apache httpd mod_ssl [SSLProxyMachineCertificateFile] does not support PKCS#8 key format." from https://access.redhat.com/solutions/3214421 and "You can't [use BEGIN RSA PRIVATE KEY] because the format isn't allowed in FIPS mode because it uses MD5 for key derivation." from http://openssl.6102.n7.nabble.com/Not-getting-quot-RSA-quot-keyword-for-a-key-in-fips-mode-td58588.html, it gives us the only option of not using SSLProxyMachineCertificateFile for the capsule.
I was not able to find any reason why to set the SSLProxyMachineCertificateFile for defining
the rhsm proxy (my tests showed that the proxying the client requests with consumer ceriticates
worked just find), but if anyone can think of one reason, please speak up.
Fixes #26088 - ensure RSA word for SSLProxyMachineCertificateFile
Apaches's SSLProxyMachineCertificateFile is not able to find a key
wrapped in `-----BEGIN PRIVATE KEY-----`, which is the format that is
generated when running the server in FIPS mode. It seems that just making
sure the RSA word is there make Apache happy to find the key.
I've added `force_rsa` option for the cert files resources to enforce the
RSA word to be there when wrapping the private key + used that to
generate the client bundle for SSL proxy to use it.
#1 Updated by Ivan Necas 5 months ago
- Assignee changed from Lukas Zapletal to Ivan Necas
- Status changed from New to Assigned
- Category changed from Foreman Proxy Content to Installer
- Subject changed from httpd fails to start after installing capsule in FIPS mode to httpd fails to start after installing capsule in FIPS mode