Fixes #33431: Use Ruby OpenSSL to ensure PKCS1 format
On FIPS enabled machines, private keys generated are not in PKCS #1 format which is required by Apache for bundled SSL proxy machine certiicates. This switches to using Ruby's OpenSSL library to generate the proper format when needing to force PKCS #1 format rather than string manipulation.
Related issues
Bug #33431: Use OpenSSL Ruby to ensure Apache certificate bundle is in the proper format on FIPS machines
Fixes #33431: Use Ruby OpenSSL to ensure PKCS1 format
On FIPS enabled machines, private keys generated are not in PKCS #1
format which is required by Apache for bundled SSL proxy machine
certiicates. This switches to using Ruby's OpenSSL library to generate
the proper format when needing to force PKCS #1 format rather than
string manipulation.