【fiddler安装】解决“Creation of the root certificate was not successful.”的问题

问题:在安装过fiddler后,会出现“Creation of the root certificate was not successful.”的问题,这个是说证书安装不成功。

原因:在使用Fiddler抓包时,我们有时需要抓https协议的包,这种需要配置一下 开启监控https才可以,打开fiddler,Tools—>options—>https,勾选捕捉https:

【fiddler安装】解决“Creation of the root certificate was not successful.”的问题_第1张图片

这样配置完OK之后 一般会弹窗提示安装证书,点击安装,然后重启Fiddler即可。

但有时候没有弹窗安装证书或根本就没有提示,这种情况一般在Win7中较多出现,Win7的系统https方面 在.net Framework4.0上有bug

网上搜罗一番之后解决方案是

1.cmd 命令行   找到fiddler的安装目录  如:

cd C:\Users\JayshSoft\AppData\Local\Programs\Fiddler

然后执行以下命令

makecert.exe -r -ss my -n "CN=DO_NOT_TRUST_FiddlerRoot, O=DO_NOT_TRUST, OU=Created by http://www.fiddler2.com" -sky signature -eku 1.3.6.1.5.5.7.3.1 -h 1 -cy authority -a sha1 -m 120 -b 09/11/2018

 

注意:这个命令最后的日期 09/11/2018  一定要大于现在的日期 否则创建证书是过期的

 

这样执行完之后 再去重新配置一次 就可以正确安装证书了。

 

 

【fiddler安装】解决“Creation of the root certificate was not successful.”的问题_第2张图片

【fiddler安装】解决“Creation of the root certificate was not successful.”的问题_第3张图片

 

 【fiddler安装】解决“Creation of the root certificate was not successful.”的问题_第4张图片

 

你可能感兴趣的:(【fiddler安装】解决“Creation of the root certificate was not successful.”的问题)