Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web service client with ssl

Fernando Ortiz
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have to make a web service client using a pfx file for ssl authentication, the following code is just working fine:

The problem is that I have to use a different pfx file with new clients, I have this process running in tomcat and when I need to use a different pfx file, I need to restart it because the use of

What I am trying to do is make a dynamic call for this pfx file, I have a form configuration for this I do know which file I need to use every time.

I do know what to do, I have read about a KeyStore and a SSLContext, but I don't know how to use them in my actual code.

Thanks in advance.

Note: I can change my code, doesnt need to be the same but I must send the xml to the web service.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic