Java HTPPS SSL Client
HTTPS secure HTTP connection , HTTP over secure socket layer (SSL). To establish an HTTPS connection to a remote server , you should use the certificate obtained by the server. This certificate is validated using a local trust store. Default trust store is /lib/security/cacerts. You can define another trust store using keytool application in /bin. Certificates can be added to trust store with keytool application also. You should give trust store parameter to JVM like this : -Djavax.net.ssl.trustStore=/mypath/my.keystore -Djavax.net.ssl.trustStorePassword=mypassword Here is the sample code to create an HTTPS connection: package javacream; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.URLEncoder; import java.security.Security; import javax.net.ssl.SSLSocket; import javax.net.ssl.SSLSocketFactory; public class HTTPSClient { public static void main(String[] args...