users@glassfish.java.net

Re: SSL connection client certificate?

From: <glassfish_at_javadesktop.org>
Date: Fri, 29 Feb 2008 01:03:28 PST

Compute the KeyIdentifier for the Certificate they have given you using the following code :

import com.sun.wsit.security.SunKeyIdentifierSPI;
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;

//create the certificate Object using JDK API's by reading the Cert they have given
X509Certificate cert = ....

byte[] = (new SunKeyIdentifierSPI()).getSubjectKeyIdentifier(cert);
String ski = Base64.encode(keyIdentifier);

if ("abfbfb3d4sdnb5udshx6xx=".equals(ski)) {
  // Then it means you are using the right Certificate
  // so you need to ask them to give you the detailed .Net Server Side Log's to analyze
  // what is the real issue.
} else {
  // you are probably using the wrong cert ?.
}

Can you access the WSDL of the .Net Service in the Browser ?. Can you attach the WSDL so i can take a look.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

http://forums.java.net/jive/thread.jspa?messageID=261577