Weblogic/Java not sending Client Certificate in Mutual SSL Integration with IIS


Weblogic/Java not sending Client Certificate in Mutual SSL Integration with IIS



I'm having trouble understanding why Weblogic/Java are not sending the Client certificate requested by the server(IIS server) during SSL Handshake via the CertificateRequest message.



I have already checked and tried all the other questions/answer in SO such as :
Java not providing client certificate for mutual SSL?
and similar.



I have created a custom keystore called Identity.jks and I've follwed the WL guides (and everything else I could find on the Internet) to do the right settings.



Here are the debug logs for the SSL handshake:


*** CertificateRequest
Cert Types: RSA, DSS, ECDSA
Supported Signature Algorithms: SHA512withRSA, SHA512withECDSA, SHA256withRSA, SHA384withRSA, SHA1withRSA, SHA256withECDSA, SHA384withECDSA, SHA1withECDSA, SHA1withDSA
Cert Authorities:
<Empty>
*** ServerHelloDone
Warning: no suitable certificate found - continuing without client authentication
*** Certificate chain
<Empty>



As you can see the server sends a CertificateRequest message but for some reasons the Cert Authorities is Empty. The client (Weblogic) in this case doesn't send the certificate. As you can see there is a warnin message by the developers saying:


CertificateRequest


Cert Authorities


Empty



no suitable certificate found - continuing without client authentication


no suitable certificate found - continuing without client authentication



When I use SoapUI instead of Weblogic to communicate with the server the handshake succeeds. SoapUI sends the certificate contained in the Identity.jks keystore.


SoapUI


Identity.jks



Can it be that SoapUI is less restrictive and sends the only certificate present in the keystore anyway while Weblogic is expecting from the server to find something in the Cert Authorities:
<Empty>
?


SoapUI


Cert Authorities:
<Empty>



Since I've setup weblogic to use that key with that alias I expect it to send it...



Is my interpretation of the logs correct?



Any idea/help is welcome.





are they both Weblogic and SOAPUI running the exact same JVM ?
– Eugène Adell
Jun 29 at 9:43






@EugèneAdell Yes they are running both in Java 8 specifically: jdk1.8.0_151
– Alboz
Jun 29 at 10:12





When the server sends an empty cert authorities list it is up to the client as to whether it's sends a cert or not. This you should fix the incorrect server configuration so that the server send the correct CAs list.
– James K Polk
2 days ago





@JamesKPolk even with the server sending the list of cert authorities the problem still persists... Seems some WL specific behaviour.
– Alboz
2 days ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Export result set on Dbeaver to CSV

Opening a url is failing in Swift