简体   繁体   English

尝试通过https调用服务时出现异常

[英]Getting Exception while trying to call a service over https

I am trying to parse JSON from a http call and I have successfully done it. 我正在尝试从http调用解析JSON,并且已成功完成。 But when i try to parse same data from https it gives me the following exception... 但是当我尝试从https解析相同的数据时,它给了我以下异常...

06-28 12:23:37.629: W/System.err(3987): javax.net.ssl.SSLPeerUnverifiedException: No peer certificate 06-28 12:23:37.629:W / System.err(3987):javax.net.ssl.SSLPeerUnverifiedException:没有对等证书

Could someone please help me understand what is wrong. 有人可以帮助我了解问题所在。

Yuor problem here is not parsing the json but rather the lack of appropriate certificate. 这里的问题不是解析json,而是缺少适当的证书。

This might help you. 可能对您有帮助。

i learned from this link json parsing 我从这个链接json解析中学到了

below are some other useful links 以下是一些其他有用的链接

link >> link1 >> link2 链接 >> 链接1 >> 链接2

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

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