gpt4 book ai didi

ios - 已安装证书但 iOS safari 一直显示 "cannot verify the identity of the website"

转载 作者:太空宇宙 更新时间:2023-11-03 14:47:54 24 4
gpt4 key购买 nike

我有一个运行证书的服务器:

更新:也试过这个:https://blog.httpwatch.com/2013/12/12/five-tips-for-using-self-signed-ssl-certificates-with-ios/

  1. openssl genrsa -out myselfsigned.key 2048
  2. openssl req -new -x509 -sha256 -key myselfsigned.key -out myselfsigned.cer -days 365-subj/CN=x.x.x.x
  3. 将证书导入 mac keychain - 工作正常。
  4. 更新 1:通过电子邮件将证书(或参见 this)发送到我的 iPhone 并使用绿色复选标记进行安装。也就是说,它安装好并显示 Verified。
    这没有用。作为
    当我在 iOS Safari 中打开网站时,不断弹出一条消息“无法验证网站的身份”

你知道我错过了什么吗?

更新 2:我尝试了 Marcus Adams 的回答,结果相同。
更新 3:我还尝试从 KeyChain 导入然后导出证书。这个想法是,在 KeyChain 中,您可以将 Trus 设置为“始终信任”,如果这应该是缺失的部分 - 但不是吗?问候

最佳答案

您似乎缺少证书颁发机构步骤。

你需要:

  1. 创建 CA 证书
  2. 创建 CSR
  3. 使用 CA 证书自行签署您的 CSR
  4. 在设备上安装 CA 证书

这是一篇文章的链接,其中包含有关创建 CA 证书并使用该证书进行自签名的说明:

Be your own Certificate Authority (CA)

关于ios - 已安装证书但 iOS safari 一直显示 "cannot verify the identity of the website",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37187697/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com