First of all, the URL endpoint should be httpS not http and make your truststore/keystore available to JVM.
see: http://blog.technogemsinc.com/2008/02/https-connection-in-java.html
I used also https://code.google.com/p/misc-utils/wiki/JavaHttpsUrl about an year ago..
Use what is more convenient to you from the below two options
Make truststore available to jvm
-Djavax.net.ssl.trustStore="<%PATH_TO_TRUST_STORE%>\testkeys"
Tell your Java/socket factory to use this "trust store":
System.setProperty( "javax.net.ssl.trustStore", "keystore_file" );
System.setProperty( "javax.net.ssl.trustStorePassword", "somepass" );