This discussion is archived
0 Replies Latest reply: Jan 11, 2013 8:48 AM by 982961 RSS

2-way ssl with Use Server Certs and direct sockets

982961 Newbie
Currently Being Moderated
In weblogic 10.3.6 I am attempting to use the "Use Server Certs" option with outbound 2-way SSL. This works fine as long as I am using HTTPS; when I try to create a direct SSL Socket the hand shake fails and no client certificate is presented to the other server. Note I cannot use a HttpsURLConnection, it needs to be a direct socket.
Is there any way to get a direct socket connection that would utilize the "User Server Certs" feature?

A simple test that demonstrates what I am trying to do:
SSLSocketFactory factory = SSLSocketFactory.getDefault();
SSLSocket socket = (SSLSocket) factory.createSocket(host, port);
socket.startHandshake(); <-- this line will fail

Any information is appreciated.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points