Reputation: 1058
Clarification A: Since this is an SSL question, I hope I can lower the obvious security red flags and potentially save the time of our resident SSL security experts, by stating the following:
Clarification B: While the obvious answer would be "have your devops finally manage to create machines without broken certificates" - well, we are not that evolved yet :) Also, if Postman and SoapUI can do this, I think it's important that the Java programming community knows how to do this too!
Now, to the question:
I am getting: java.security.cert.CertificateException: No subject alternative DNS name matching beta-automaton-api.localnet found
I've found google results and SO questions such as: https://stackoverflow.com/questions/51622117/issue-with-dns-naming-and-certificates-ldap-context/51646182?r=SearchResults&s=5|11.6157#51646182
Where the "temporary patch, don't push this to production" is to start java with:
-Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true
However, I am still getting the same exception...
I am even checking inside the SOAP client:
System.getProperty"com.sun.jndi.ldap.object.disableEndpointIdentification"); // true
-ea -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true
Any ideas why this "patch trick" with -D...disableEndpointIdentification doesn't work for me?
Upvotes: 0
Views: 1258