Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SOAP UI not working for https request (java.security.cert.CertificateException: Certificates does not conform to algorithm constraints)

I am getting the following exception while invoking https url in SOAP UI.

java.security.cert.CertificateException: Certificates does not conform to algorithm constraints

from the exception message i can understand it is a handshake error.

Can you help me in solving it?

like image 291
Kishore Tulsiani Avatar asked Mar 16 '23 16:03

Kishore Tulsiani


1 Answers

After spending lot of time trying to figure out how to get around it, the solution is simple...

JDK7 changed the default Java security settings to disable MD2 algorithm to sign SSL certificates. BUT this can be re-enabled by editing:

%JDK_HOME%/jre/lib/security/java.security

NOTE: SOAP UI uses its own jre so the same needs to be commented in java.security file under soap ui directory for me it was in:

C:\SoapUI-5.1.3\jre\lib\security

Comment out this property:

jdk.certpath.disabledAlgorithms=MD2

#... becomes ...

#jdk.certpath.disabledAlgorithms=MD2
like image 115
Kishore Tulsiani Avatar answered Apr 26 '23 13:04

Kishore Tulsiani