> 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);
Sorry Im not able to get it compiled im doing like this.
inStream = new FileInputStream("fileName-of-cert");
X509Certificate cert = X509Certificate.getInstance(inStream);
byte[]keyidentifier = (new SunKeyIdentifierSPI()).getSubjectKeyIdentifier(cert);// im getting error at this line as...
Incompitable types found:com.sun.wsit.security.SunKeyIdentifierSPI.getSubjectKeyIdentifier
required :bytes[]
I am using jdk 1.6.0_03
>
> 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.
I hav attached the wsdl in attachment from the browser address.
Hoping to get some response .
Regards
[Message sent by forum member 'manischsingh' (manischsingh)]
http://forums.java.net/jive/thread.jspa?messageID=261940