View Single Post
  #4  
Old 02-01-2017, 07:10 AM
tbhale tbhale is offline
Member
 
Join Date: Jan 2017
Posts: 4
tbhale has 10 reputation points
Default

Thanks Naresh, Mark for help.

I resolved this error by creating HttpClient with SSLContext as per below and then use same httpclient for ECC operation,

final SSLContext sslContext = SSLUtilityFactory.createSSLContext(SSLProtocolType .TLS);
final SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext,
SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERI FIER);
HttpClient httpClient = HttpClients.custom().setSSLSocketFactory(sslsf).bu ild();

Thanks,
Tanaji B.

Last edited by tbhale; 02-01-2017 at 10:32 PM.
Reply With Quote