Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to setup SSL client authentication for a code running in weblogic calling another webservice

User_R4Q29Mar 2 2021

I am deploying a war file in Weblogic 12c The war contains a spring controller which male call to a 3rd party rest service. The 3rd party rest service is protected by SSL Client authentication. In Tomcat I would put my certificate and the key in a JKS keystore and set the following Java system properties
javax.net.ssl.keyStore
javax.net.ssl.keyStorePassword
to point to my keystore.
With the above system properties my controller will automatically use my key and certificate while creating a HTTPS connection with the 3rd party REST service
I tried the same by setting the above two system properties in weblogic startup script, but the key/certificate is not used while trying to create a HTTPs connection with the 3rd party webservice and hence the SSL handshake fails.
I turned on SSL debugging and noticed the following in SSL logs No X.509 certificate for client authentication, use empty certificate message instead
Can someone please help me how to make it work in Weblogic?

Comments
Post Details
Added on Mar 2 2021
0 comments
736 views