像浏览器一样弹出挑战 didReceiveAuthenticationChallenge
我正在使用自签名证书,并且我想弹出与 safari 相同的消息,就好像证书不是由受信任的 CA 签名一样,用户接受或取消继续。我不确定如何通过 didReceiveAuthenticationChallenge 使用它。我注意到当 didReceiveAuthenticationChallenge 失败时,它会给出一个错误,在本地描述中有提示,但数组中没有内容,以满足与使用 webview 或 safari 时相同的行为。
对此考虑的任何意见都会有所帮助,
谢谢。
I am utilizing self-signed certificate, and I want to popup the message same as the safari does as if the cert is not signed by Trusted CA's, the user accepts or cancel to go forward. I am not sure as of how to utilize this through didReceiveAuthenticationChallenge. I noticed when didReceiveAuthenticationChallenge fails, it gives an error which have that prompt in local description, but there is no content in the array, to satisfy same behavior as it does when using webview or safari.
Any input in this consideration will be helpful
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论