在android模拟器上安装CA证书

发布于 2025-01-20 20:22:28 字数 459 浏览 2 评论 0原文

我正在使用 Android 模拟器 (Pixel_3a_API_32_arm64-v8a),需要在那里安装 Charles Proxy。按照步骤,我已经设置了 wifi 设置(即将代理更改为手动,然后在 wifi 设置中设置代理主机名代理端口)。另外,我还使用 http://chls.pro/ssl 下载了 SSL 证书。但在尝试安装它时,我的 Android 模拟器出现错误。

错误

This certificate from null must be installed in Settings. Only install CA certificates from organizations you trust.

I am using an android emulator (Pixel_3a_API_32_arm64-v8a) and need to install Charles Proxy there. As per the step I have already set up the wifi settings(i.e change proxy to manual and then set up the proxy hostname and proxy port in the wifi setting). Also, I have downloaded the SSL certificate using http://chls.pro/ssl. But on trying to install it I am getting an error in my android emulator.

Error

This certificate from null must be installed in Settings. Only install CA certificates from organizations you trust.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凌乱心跳 2025-01-27 20:22:28

在最近的 Android 版本中,不再可能安装系统证书,并且安装用户证书要困难得多。无法正常打开文件来安装它,并且应用程序也无法向您显示任何触发安装的提示。

有关更改及其工作原理的更多详细信息,请参阅 https://httptoolkit。 com/blog/android-11-trust-ca-certificates/

您需要的实际步骤是:

  • 打开设置
  • 转到“安全”
  • 转到“加密和加密”凭据”
  • 转到“从存储安装”
  • 从可用类型列表中选择“CA 证书”
  • 接受一个大而可怕的警告
  • 浏览到设备上的证书文件并将其打开
  • 确认证书安装

On recent Android versions, it's no longer possible to install system certificates, and installing user certificates is much harder. It's not possible to just open the file normally to install it, and apps can't show you any prompts to trigger installation either.

For more details on the change and how this works, see https://httptoolkit.com/blog/android-11-trust-ca-certificates/

The actual steps you need are:

  • Open settings
  • Go to 'Security'
  • Go to 'Encryption & Credentials'
  • Go to 'Install from storage'
  • Select 'CA Certificate' from the list of types available
  • Accept a large scary warning
  • Browse to the certificate file on the device and open it
  • Confirm the certificate install
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文