像浏览器一样弹出挑战 didReceiveAuthenticationChallenge

发布于 2025-01-03 06:23:00 字数 257 浏览 1 评论 0原文

我正在使用自签名证书,并且我想弹出与 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文