I am trying to call a webservice using ssl. How do i get the relevant server cert so that i can import it into my truststore? I know about the use of property com.ibm.ssl.enableSignerExchangePrompt from a main method but i would add the server cert to my truststore manually.
I dont want this property set in any of my servlets
Any help is greatly appreciated Thanks Damien
you can programmatically do this with Java by implementing your own X509TrustManager.
Then you can use this trust manager to create a SSL sockect
Then with that socket you can just extract the server certificate (an put import it in the trusted keystore)