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

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

问题描述

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

已更新为添加内容:我最终回到了4.3.在那方面行之有效.

解决方案

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

背景:我也遇到了与您描述的问题相同的问题,这似乎是一个android emulator 4.4.2 bug,当您不首先导入证书时即当您不遵循上述确切步骤时,就会发生此错误./p>

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.

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

解决方案

  1. Go to Android Virtual Device Manager (sdk\tools\android.bat avd)
  2. Start your emulator but select 'Wipe user Data' when you're starting the emulator
  3. Copy your certificate into /storage/sdcard using e.g. sdk/tools/monitor.bat
  4. Set a screenlock pin here: Settings > Security > Screenlock > PIN
  5. Now you can import the certificate properly via Settings > Security > Install from storage

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天全站免登陆