I am connecting to dc bidden server using following handshaking code
System.setProperty("javax.net.ssl.keyStore",".p12 file path");
System.setProperty("javax.net.ssl.keyStorePassword",keystorePassword);
System.setProperty("javax.net.ssl.keyStoreType",""pkcs12"");
i am able to connect to the first server with this code but for next server tomcat ignore the recent property set so i am not able to connect to next server with same kind of dc bidden server.
Thanks in advance
If by 'connecting https URL' you mean specifically the
java.net.URLclass and something likenew java.net.URL("https://something") .openConnection()which returns an implementation (subclass) ofjavax.net.HttpsURLConnectionhere are two examples as I referenced:However there are lots and lots of other ways of connecting to https (and other) URLs in Java; if you actually meant something else you have to be more specific.