Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于支持Https证书 #24

Open
yandesheng opened this issue Aug 28, 2016 · 0 comments
Open

关于支持Https证书 #24

yandesheng opened this issue Aug 28, 2016 · 0 comments

Comments

@yandesheng
Copy link

hi,关于证书的支持因为没有找到详细的文档,个人有一点理解,不清楚是不是完全正确.
目前我们服务端有一个证书,我将该证书下载下来然后引入.在初始化的时候.setCertificates("")
然后将addHttps()打开使用
初始化的时候设置setCertificates()设置本地的证书.然后需要将addHttps打开,checkServerTrusted返回代表对这个证书做了校验.这样是不是意味着我是对这个单个证书做了校验.目前我直接setCertificates这个不调用也是可以通过校验的。内部是不是意味着直接所有的直接通过校验了呢?怎么样信任单个证书呢.谢谢.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant