Https request with mutual authentication passes with curl but fails with java Https request with mutual authentication passes with curl but fails with java curl curl

Https request with mutual authentication passes with curl but fails with java


I discovered what the issue was and so I wanted to share with others who have this in common.

It looks like on mac os x curl is by default using the system trusted certificates and on java side this is not the case. I am not sure what the behaviour of curl is with other operating systems. https://prod.idrix.eu/secure/ has a certificate which is signed by DST Root CA X3 I disabled this and rerun the exact same setup as described on my initial question and the curl https request fails, just like it also failed on java side.

I disabled it from keychain as shown here:enter image description hereenter image description here