有没有更简单的方法告诉HTTPBuilder忽略无效的证书? [英] Is there an easier way to tell HTTPBuilder to ignore an invalid cert?

查看:97
本文介绍了有没有更简单的方法告诉HTTPBuilder忽略无效的证书?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据文档,您可以通过一个相当笨重的出口流程手动从浏览器获得证书并在本地获得认证。有没有类似于curl的 - insecure 开关来实现这个功能?

解决方案

每个人都有好消息! :-)
刚刚发现HttpBuilder的新版本(0.7.1)引入了方法:
$ b $ pre $ ignoreCssLIssues()

解决了无效SSL证书的所有问题(当然,您必须意识到它也会降低安全性)。

有关此方法的更多信息: https:// github .com / jgritman / httpbuilder / wiki / SSL (底部的部分)


Per the docs, you can go through a rather clunky process of export a cert from a browser manually and getting it recognized locally. Is there anything similar to curl's --insecure switch to make this practical?

解决方案

Good news everyone! :-) Just found out that new version (0.7.1) of HttpBuilder introduces method:

ignoreSSLIssues()

This solves all problems regarding invalid SSL certificates (of course you have to be aware that it also decreases security).

More information about this method: https://github.com/jgritman/httpbuilder/wiki/SSL (section at the bottom)

这篇关于有没有更简单的方法告诉HTTPBuilder忽略无效的证书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆