Is there any way to establish an HTTPS connection without importing the certificate to keyStore?
Currently , I am importing the certificate to myKeyStore
keytool -import -alias aliasOfCertifiate -file myCertificateFile.cer -keystore myKeystore
using a javax.net.ssl.HttpsURLConnection
object to establish the HTTPS connection. But, as per a new requirement, my HTTPS client may need to communicate with thousands of web servers. So, I believe, importing the certificate might not be a good idea.
Any ideas?