Solution: It's necessary to implement own TrustManager which can be e.g. dummy trust manager ignoring all or manager which will do necessary logic... This trust manager should be registered in SSLContext class using init method. Connection must be done using socket created from SocketFactory returned from initialized SSLContext instance. When using HttpsUrlConnection it's simpler, you only have to initialize SSLContext.
Did you miss me? Did you miss this tiny ad?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth