Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fiddler2 unable to generate certificate

I'm using Fiddler2 (or trying) to capture SSL traffic for a windows desktop gadget hitting an https web service. It used to work, and then it stopped a couple days ago, always with this error:

---------------------------  Unable to Generate Certificate  ---------------------------  Creation of the interception certificate failed.  makecert.exe returned -1.  Results from C:\Program Files\Fiddler2\MakeCert.exe -ss my -n  "CN=DO_NOT_TRUST_FiddlerRoot, O=DO_NOT_TRUST, OU=Created by  http://www.fiddler2.com" -eku 1.3.6.1.5.5.7.3.1 -r -cy authority -a  sha1  Error: Can't create the key of the subject ('JoeSoft')  Failed  -------------------------------------------  

(I swiped the error from the google group for fiddler, although I just posted my own and it should be visible soon).

Has anyone else had this problem and solved it? Is Fiddler just broken?

like image 247
Ben Collins Avatar asked Apr 01 '11 22:04

Ben Collins


People also ask

How do I get Fiddler root certificate?

On the Fiddler Echo Service Webpage, click the FiddlerRoot Certificate link. Ensure that the Fiddler certificate is generated through the BouncyCastle certificate generator. If the download doesn't open automatically, swipe down from the top and tap the Settings icon. Tap Personal > Security.

How do I add a certificate to Fiddler?

Start Fiddler Everywhere and go to Settings > HTTPS. Click the Trust Root Certificate button. Confirm your choice and add the certificate in the popup that appears. Enable capturing the HTTPS traffic by selecting the Capture HTTPS traffic checkbox.


1 Answers

In Win7

  • So go here: C:\Users\<username>\AppData\Roaming\Microsoft\Crypto\RSA\
  • Select all the files (named with UUIDS).
  • Move those files to your Desktop or other folder outside AppData dir.
  • Launch Fiddler, go to Tools | Fiddler Options | Enable HTTPS decryption
  • See that it works this time (hopefully).
  • Move the files back from their temp location (i.e., Desktop),
    to their original one: C:\Users\<username>\AppData\Roaming\Microsoft\Crypto\RSA\
  • When one of the files asks whether you want to replace the existing one, skip it.
like image 78
user1740078 Avatar answered Oct 05 '22 19:10

user1740078