How to resolve CertPathValidatorException: Algorithm constraints check failed on keysize limits: RSA 1024 bit key used with certificate: CN=SSL_Self_Signed_Fallback
?
Root cause of this issue lies on diferrences between SSL certificate and specified Java security policies.
The simpliest way to resolve it is disabling crypto-policies alignment, but It might be not a solution in some cases:
-Djava.security.disableSystemPropertiesFile=true
In my case, It was a solution.
Sources:
- System property passed to the JVM as an argument. For example,
-Djava.security.disableSystemPropertiesFile=true
. - Non-privileged access is enough.
- Non-persistent configuration.
- When set to true, both the global FIPS and the crypto-policies alignment are disabled; generating the same effect than a
security.useSystemPropertiesFile=false
security property. If both properties are set to different behaviors,java.security.disableSystemPropertiesFile
overrides. By default, it is set to false.