12

导入Fiddler的DER格式的根证书为安卓系统证书

 3 years ago
source link: https://blog.ihipop.info/2019/08/5222.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

跳至内容

小顾de杂记

O(∩_∩)O~|Across the great wall we can reach the every corner in the world.

导入Fiddler的DER格式的根证书为安卓系统证书

安卓系统根证书有以下几部分组成:

文件名称:使用openssl的subject_hash_old选项计算hash而来

文件内容:PEM格式加证书文本信息

Fiddler的证书是DER格式,安卓不能识别,需要转换。

name=$(openssl x509 -inform DER -subject_hash_old -in FiddlerRoot.cer  |head -1).0
openssl x509 -inform DER -in FiddlerRoot.cer -out $name
openssl x509 -inform DER -text  -in FiddlerRoot.cer -noout >>$name
echo $name

然后 拷贝到/system/etc/security/cacerts 里面 。chmod u+rw,g+r,o+r 重启即可

Author Info : From:导入Fiddler的DER格式的根证书为安卓系统证书 URL:https://blog.ihipop.info/2019/08/5222.html Please Reserve This Link,Thanks!

发布于 2019年08月7日2019年08月7日作者 ihipop分类 Linux Manger

《导入Fiddler的DER格式的根证书为安卓系统证书》上有1条评论

  1. 3e43176bb89d53e50d122cb3ac884b85?s=56&d=mm&r=g了然如一说道:

    呦呵?我之前小米用fiddler的时候也研究过,旧的不需要-text,后来更新到MIUI11之后发现就都有-text了。

发表评论 取消回复

邮箱地址不会被公开。 必填项已用*标注

评论

姓名 *

电子邮件 *

站点


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK