Provide clearer error message for encrypted PEM(PKCS#8) Keys in FIPS-enable environments #46696
Labels
area/securepipeline
issues related to ensure Quarkus can be used in a secure pipeline setups like FIPS or similar
kind/enhancement
New feature or request
Description
Currently, when using the encrypted PEM(PKCS#8) key feature introduced in Quarkus TLS registry, if the environment is FIPS enabled, the feature will fail due to unsupported encryption algorithms(eg AES-128-CBC). This results in a NPE:
Using
PBEWithSHA1AndDESede
Quarkus fails to decrypt it with the next error trace :It would be good to provide a clearer and informative error message when encrypted PEM certificates are used in a FIPS enabled environment, for instance:
"Provided PEM private key cannot be decrypted because AES-128-CBC is unavailable. Please note that encrypted PEM is currently not supported in FIPS-enabled environments"
This will improve the user experience, avoiding confusion
The text was updated successfully, but these errors were encountered: