2016-01-08 22 views
5

Sto utilizzando Fiddler per monitorare il traffico HTTPS per il nostro progetto privato. Dopo l'aggiornamento a Windows 10 e l'installazione di Fiddler, non riesco a creare un certificato di origine. Ho provato ad utilizzare Sia CertEnroll e MakeCert ed entrambi tornarono che non possono creare un certificato di origine:Errore di Fiddler 4 su Windows

09:53:54:2275 Fiddler.CertMaker> [C:\Program Files (x86)\Fiddler2\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 sha256 -m 132 -b 01/07/2015 ] Returned Error: Creation of the interception certificate failed.

makecert.exe returned -1.

Results from C:\Program Files (x86)\Fiddler2\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 sha256 -m 132 -b 01/07/2015

Error: Can't create the key of the subject ('JoeSoft') Failed

E

09:43:37:0332 /Fiddler.CertMaker> Invoking CertEnroll for Subject: CN=DO_NOT_TRUST_FiddlerRoot, O=DO_NOT_TRUST, OU=Created by http://www.fiddler2.com ; Thread's ApartmentState: MTA 09:43:39:0853 !ERROR: Failed to generate Certificate using CertEnroll. System.Reflection.TargetInvocationException Exception has been thrown by the target of an invocation. < CertEnroll::CX509PrivateKey::Create: The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation. 0x80090345 (-2146892987 SEC_E_DELEGATION_REQUIRED)

Ogni volta quando si cambia il servizio che ho ripristinare tutti i certificati e/o certificati di intercettazione rimossi. Anche la chiave in AppData/Roaming/Microsoft/Crypt/RSA/{LONG_ID} non si trova da nessuna parte (la cartella è sempre vuota). Dopo aver sfogliato i forum, ho seguito alcune istruzioni e scaricato il certificato Bouncy Castle Certificate Maker (quello suggerito per Android) e quello che ha creato 2 certificati radice e li abbiamo aggiunti a Windows in modo che siano attendibili. Dopo averlo fatto, tutto il mio traffico HTTPS sembrava HTTP con tunneling. Se si guarda in tale questione, ho scoperto che in modalità testo, si legge

"This is a CONNECT tunnel, through which encrypted HTTPS traffic flows. Fiddler's HTTPS Decryption feature is enabled, but this specific tunnel was configured not to be decrypted. Settings can be found inside Tools > Fiddler Options > HTTPS."

E il registratore tornati poche delle seguenti operazioni:

"10:02:38:5419 !Certificate cache didn't find certificate for [server.com]. Returning null to thread #30. ___ 10:02:38:5419 fiddler.https> Failed to obtain certificate for server.com due to Certificate Maker returned null when asked for a certificate for server.com"

"Failed to create certificate for server.com: The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation."

Nelle proprietà di una connessione tunneling, ho trovato

"X-HTTPS-DECRYPTION-ERROR: Could not find or generate interception certificate."

Avete qualche soluzione per me? Lo apprezzerei davvero. Grazie! :)

risposta

9

Bene, sembra che alla fine fosse un problema di Windows. Il mio PC fa parte del dominio aziendale e anche se il mio utente era un amministratore di questo PC, non tutto era perfettamente funzionante (ad esempio, potevo eseguire come amministratore qualsiasi app senza problemi, ma non creare un certificato di root). Il problema è stato trovato dal mio collega nei credenziali di Windows Direttore e fissò con la seguente voce di registrazione (reg ):

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Protect\Providers\df9d8cd0-1501-11d1-8c7a-00c04fc297eb] 
"ProtectionPolicy"=dword:00000001 

Spero che questo aiuta qualcuno evitare ore di ricerca su internet per una correzione.

3

Reset All Cerificates

È necessario reimpostare Fiddler certificato radice, Dopo di che tutto andrà bene

+1

Grazie per la risposta, ma no. L'ho fatto ogni pochi minuti quando provavo cose. La soluzione era come ho detto sopra, un problema con Windows. –

1

E è un problema di Windows: la mia azienda ha appena rilasciato un aggiornamento per la sua versione di Windows 10 e io iniziato a vedere gli errori del certificato descritti sopra. La modifica del registro è stata l'unica cosa che ha reso Fiddler e la navigazione del sito Web nuovamente funzionanti