[ FIX ] "Failed to validate certificate, The application will not be executed." on Java


Problem :
Unable to launch Java applications with  error "Failed to validate certificate, The application will not be executed." error.
Failed to validate certificate,
The application will not be executed.
sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: algorithm constraints check failed
at sun.security.validator.PKIXValidator.doValidate(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
in this case i run for brocade san switch

Description:
Starting with Java/JRE 7u40, Java requires the application (the jar file executed via jnlp) to be signed by a certificate with a minimum public key size of 1024 bits.
At this time the Live Health jnlps are signed with a certificate of less than 1024 bits (we use 512 bits), causing a security validation failure.

solution :

Changing the value 1024 to 256 solves the issue in eHealth Live clients (as they are currently signed by a certificate with a 512-bit key). This change in java.security has to be done by a user with the administrator role, and java must be restarted in order for changes to take effect.

- edit java security @ : C:\Program Files (x86)\Java\jre1.8.0_181\lib\security\java.security

jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
    RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224

to :

jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
    RSA keySize < 256, DSA keySize < 256, EC keySize < 224

==> tested on windows 10 with



Previous
Next Post »

2 comments

Click here for comments
Unknown
admin
July 6, 2019 at 8:11 PM ×

While using digital signature error "failed to validate certificate application will not be executed"
Please tell the solution.

Reply
avatar

comment please ... ConversionConversion EmoticonEmoticon

Thanks for your comment