简体   繁体   English

用于HTTPS调用的Apache Commons HttpClient

[英]Apache Commons HttpClient for HTTPS call

Does HttpClient uses cacerts that is available in every JRE? HttpClient是否使用每个JRE中可用的cacerts? do i need to configure the HttpClient with SSL to invoke a HTTPS endpoint. 我是否需要使用SSL配置HttpClient以调用HTTPS端点。

The endpoint uses GeoTrust which is a trusted authority by cacerts withing JRE. 端点使用GeoTrust,它是cacerts使用JRE的受信任机构。 Does HttpClient handle the security? HttpClient是否处理安全性?

Yes, it does, according to the website . 是的,根据网站的说法。 If you have JSSE installed and all JDKs after 1.4 come with it out of the box, SSL works with the httpclient library (any version) just as you would with any other request. 如果安装了JSSE并且1.4之后的所有JDK都是开箱即用的,那么SSL就可以与httpclient库(任何版本)一起使用,就像处理任何其他请求一样。

There is nothing in the Commons HttpClient API that allows a developer custom control over SSL parameters. Commons HttpClient API中没有任何内容允许开发人员自定义控制SSL参数。 You don't need to configure Commons HttpClient specifically; 您不需要专门配置Commons HttpClient; HttpClient will delegate SSL verification and so forth to whatever Java-standard SSL sockets use. HttpClient会将SSL验证等委托给任何Java标准SSL套接字使用。 That, in turn, will end up in your JRE's cacerts file being inquired for CA validation. 反过来,这将最终在您的JRE的cacerts文件中被询问CA验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM