It's not a secret anymore!
The moose likes Web Services and the fly likes SSL Mutual Authentication Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SSL Mutual Authentication Issue" Watch "SSL Mutual Authentication Issue" New topic

SSL Mutual Authentication Issue

bhavini patel

Joined: Dec 23, 2010
Posts: 7
I am supposed to call a web service that is written in .NET. It uses mutual Authentication. I have been give *.p7b and *.pfx file.

1. used jetty.jar to get the new jks file from *.pfx file
used instructions here -
java -classpath lib/jetty-6.1.1.jar
You should get a message in your comand window that looks like this:
usage: java PKCS12Import {pkcs12file} [newjksfile]

This created file called - newKeystore.jks .

2. I added the server certificate by following the steps here.
This created jssecacerts file.
I merged this with #1.
keytool.exe" -importkeystore -srckeystore jssecacerts -destkeystore newKeystore.jks -srcstorepass <passwd> -deststorepass <password>

This updated the newKeyStore.jks

3. Exported the *.p7b as .cer and added it to newKeyStore.jks

Followed the steps under
and this is my code

I get following error Failed to access the WSDL at: http://crisref03/querywebservice/dataservice.asmx?WSDL. It failed with:
Server returned HTTP response code: 401 for URL: http://crisref03/querywebservice/dataservice.asmx?WSDL.

Please help!!

Do not know whats wrong...

I agree. Here's the link:
subject: SSL Mutual Authentication Issue
It's not a secret anymore!