如何在模拟器中将 CA 证书导入 Android 4.4.2? [英] How do I import a CA certificate into Android 4.4.2 in the emulator?

查看:32
本文介绍了如何在模拟器中将 CA 证书导入 Android 4.4.2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了 DER 和 PEM 格式.我尝试使用文件扩展名 crt、cer、p12、pem,但没有一个文件被导入.我进入设置">安全">从 SD 卡安装",它会将我带到下载"页面.我列出了证书,但是当我单击它们时,什么也没有发生.

I tried both DER and PEM formats. I tried using the file extensions crt, cer, p12, pem but nothing of them get imported. I went into Settings > Security > Install from SD card and it takes me to the Downloads page. I have the certificates listed but when I click on them, nothing happens.

更新添加:我最终回到了 4.3.它工作得很好.

Updated to add: I ended up going back to 4.3. It works fine in that.

推荐答案

  1. 转到 Android 虚拟设备管理器 (sdk oolsandroid.bat avd)
  2. 启动模拟器,但在启动模拟器时选择擦除用户数据"
  3. 使用例如将您的证书复制到/storage/sdcard 中sdk/tools/monitor.bat
  4. 在此处设置屏幕锁定密码:设置 > 安全 > 屏幕锁定 > 密码
  5. 现在您可以通过设置">安全">从存储安装"正确导入证书

背景:我也遇到了您描述的相同问题,它似乎是一个 android 模拟器 4.4.2 错误,当您不首先导入证书时发生,即当您不遵循上述确切步骤时.

Background: I also had the same problem you described and it seems to be an android emulator 4.4.2 bug which occurs when you don't import the certificate first thing i.e. when you don't follow the exact steps above.

这篇关于如何在模拟器中将 CA 证书导入 Android 4.4.2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆