This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SSL Mutual Authentication Issue  RSS feed

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 want my playground back. Here, I'll give you this tiny ad for it:
ScroogeXHTML 7.2 - RTF to HTML5 / XHTML converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!