您的位置:首页 > 大数据 > 人工智能

Could not generate DH keypair(httpclient)

2016-06-01 20:26 471 查看
Source from here

Add this library to classpath(following is maven project)

<dependency>	<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
<version>1.46</version>
</dependency>
Add following line before access https resource:

Security.addProvider(new BouncyCastleProvider());...HttpClient client = ...HttpGet get = new HttpGet("https://domain")client.execute(get,repsonse);...
                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: