How do I import a CA certificate into Android 4.4.2 in the emulator?(如何在模拟器中将 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.
推荐答案
- 转到 Android 虚拟设备管理器 (sdk oolsandroid.bat avd)
- 启动模拟器,但在启动模拟器时选择擦除用户数据"
- 使用例如将您的证书复制到/storage/sdcard 中sdk/tools/monitor.bat
- 在此处设置屏幕锁定密码:设置 > 安全 > 屏幕锁定 > 密码
- 现在您可以通过设置">安全">从存储安装"正确导入证书
背景:我也遇到了您描述的相同问题,它似乎是一个 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在模拟器中将 CA 证书导入 Android 4.4.2?
基础教程推荐
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
