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 System.properties
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.