简体   繁体   English

从 iOS(设备和模拟器)中删除自签名证书

[英]Remove self signed certificate from iOS (Device and Simulator)

  1. Use iOS Safari (on the Device or Simulator) to connect to a site that presents a self-signed certificate使用 iOS Safari(在设备或模拟器上)连接到提供自签名证书的站点
  2. iOS Safari asks you to accept the certificate before connecting iOS Safari 要求您在连接前接受证书
  3. Accept the certificate接受证书
  4. Future requests are never prompted again以后的请求不再提示

How do I remove the certificate I accepted in step #3 from my Device or Simulator?如何从我的设备或模拟器中删除我在步骤 #3 中接受的证书?

It isn't present in Settings -> General -> Profiles , and performing Settings -> Safari -> Clear Cookies and Data and Settings -> Safari -> Clear History also had no effect.它不在Settings -> General -> Profiles中,执行Settings -> Safari -> Clear Cookies and Data and Settings -> Safari -> Clear History也没有效果。

I answered this question in a comment above.我在上面的评论中回答了这个问题。 To make it clear:说清楚:

For the Simulator delete the self signed certificate from your key-chain.对于模拟器,从您的钥匙串中删除自签名证书。 For the device, just clear Cookies and Data: go to Settings->Safari对于设备,只需清除 Cookies 和 Data: go 到 Settings->Safari

Yes.是的。 For the Simulator, go under the iOS Simulator menu to "Reset Contents and Settings..."对于模拟器,iOS 模拟器菜单下的 go 到“重置内容和设置...”

For the Device, go to Window->Organizer.对于设备,go 到 Window->Organizer。 Connect your device.连接您的设备。 Go under "Provisioning Profiles" for the device ... NOT the library. Go 在设备的“配置文件”下......不是库。 Highlight the profiles you want to delete and press the delete key.突出显示要删除的配置文件,然后按删除键。

That's it!而已!

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

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