Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TwoWay Authentication is not working with Verisign Test Certificates

0 views
Skip to first unread message

srinivasan

unread,
Sep 23, 2001, 8:18:50 PM9/23/01
to

Hi,

I am trying two way authentication using weblogic6.1. I am following the weblogic6.1
sample SSL files like SSLClientServlet and SSLClient, it's working fine with weblogic
demo .pem certificate files, but it's failing when i try with verisign test certificates
as follows

below is the sample piece of code which i am trying to setup the client certificate
in the HTTPSUrlConnection.


URL wlsUrl = new URL("http", host, Integer.valueOf(port).intValue(),
query);
weblogic.net.http.HttpsURLConnection sconnection =new weblogic.net.http.HttpsURLConnection(wlsUrl);

InputStream [] ins = new InputStream[3];
ins[0] = new PEMInputStream(new BufferedInputStream (new FileInputStream("e:/bea/jdk131/jre/lib/security/congo_nextlinx_com-key.der")));
System.out.println("111333");
ins[1] = new PEMInputStream(new BufferedInputStream (new FileInputStream("e:/bea/jdk131/jre/lib/security/congo_nextlinx_com-VerisignCA_509.cer")));
System.out.println("111444");
ins[2] = new PEMInputStream(new BufferedInputStream (new FileInputStream("e:/bea/jdk131/jre/lib/security/getcacert.cer")));
sconnection.setSSLClientCertificate(bins);

Question : the above code is hanging, while creating PEMInputStream itself.
What should i do to make working above code.

The above code was not working, Then i imported the .cer files into ie browser,
and i exported as base64 encoded certificate, then i am getting the following
error in the weblogic.

Question : What should i do for setting up the verisign certificate in the client
side?

earlier response will be appriciated.

Thanx in advance

Srini


srinivasan

unread,
Sep 23, 2001, 8:20:28 PM9/23/01
to

Hi,

java.io.EOFException
at weblogic.security.Utils.inputByte(Utils.java:133)
at weblogic.security.ASN1.ASN1Header.inputTag(ASN1Header.java:125)
at weblogic.security.ASN1.ASN1Header.input(ASN1Header.java:119)
at weblogic.security.RSAPrivateKey.input(RSAPrivateKey.java:122)
at weblogic.security.RSAPrivateKey.<init>(RSAPrivateKey.java:91)
at weblogic.security.SSL.SSLParams.objectToCertificate(SSLParams.java:40
5)
at weblogic.security.SSL.SSLParams.setClientCert(SSLParams.java:508)
at weblogic.security.SSL.SSLParams.<init>(SSLParams.java:344)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:81)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:177)
at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:67)
at weblogic.net.http.HttpClient.New(HttpClient.java:151)
at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:
39)
at SSLClientServlet.tryConnection(SSLClientServlet.java:142)
at SSLClientServlet.wlsURLConnect(SSLClientServlet.java:295)
at SSLClientServlet.service(SSLClientServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:245)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2279)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1923)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.utils.NestedError: Unexpected problem setting SSL params: - with neste
d exception:
[java.io.EOFException]
at weblogic.security.SSL.SSLParams.<init>(SSLParams.java:346)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:81)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:177)
at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:67)
at weblogic.net.http.HttpClient.New(HttpClient.java:151)
at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:
39)
at SSLClientServlet.tryConnection(SSLClientServlet.java:142)
at SSLClientServlet.wlsURLConnect(SSLClientServlet.java:295)
at SSLClientServlet.service(SSLClientServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:245)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2279)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1923)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

kirann

unread,
Sep 24, 2001, 4:35:34 PM9/24/01
to
hi,
there will be a patch for this problem on 61sp2.
Regards
kiran

"srinivasan" <srini...@nextlinx.com> wrote in message
news:3bae6e3c$1...@newsgroups.bea.com...

0 new messages