Replace hardcoded JKS keystore type with KeyStore.getDefaultType()#12506
Replace hardcoded JKS keystore type with KeyStore.getDefaultType()#12506mamccorm wants to merge 1 commit intostrimzi:mainfrom
Conversation
In-memory keystores used for TrustManagerFactory/KeyManagerFactory do not need a specific type. Using the JVM's default allows FIPS-configured JVMs to use their preferred keystore type (e.g. BCFKS) instead of failing on JKS. Signed-off-by: Mark McCormick <mark.mccormick@chainguard.dev>
95ea44c to
ec2562a
Compare
|
I'm not convinced this makes sense. The code was designed and tested with JKS. Not with any default store type. So I think there can be a discussion about making it configurable and a module. But it should not blindly use any default store type. Also, keep in mind that this is just a small subset of places that work with certificates. So in terms of any compliance, I do not think it has any meaning. |
|
these files have same occurrences too
|
|
@scholzj |
I have no idea what the |
|
Hi, |
Type of change
Select the type of your PR
Description
In-memory keystores used for TrustManagerFactory/KeyManagerFactory do not need a specific type. Using the JVM's default allows FIPS-configured JVMs to use their preferred keystore type (e.g. BCFKS) instead of failing on JKS.
Checklist
Please go through this checklist and make sure all applicable tasks have been done