This is a migrated thread and some comments may be shown as answers.

Running Fiddler to Capture Python Requests

1 Answer 1520 Views
Windows
This is a migrated thread and some comments may be shown as answers.
daniel
Top achievements
Rank 1
daniel asked on 02 May 2018, 05:37 PM

Hi, 

I'm having trouble getting fiddler to decrypt https traffic with the Requests library in python.  I have an application that is structured like Chrome --> iis --> python --> --> API Server.  Running my application from localhost, it captures the traffic from Chrome --> iis, I need python --> API server.  However, when I attempt the request directly from my IDE it captures python --> API server but the initial POST command to get the necessary token returns this exception:

"(Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))" .  

I have added the fiddler cert and have confirmed it is in my trusted root certificates in mmc.  This request works as expected when I do NOT have fiddler running.

Any guidance would be much appreciated I have spent a lot of time searching the web for answers.

Thank you in advance,

Daniel

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 09 May 2018, 08:21 AM
Hi,

It seems that python do not use the certificate store provided by Windows. I would suggest to go ahead and check which certificate store python uses and add Fiddler's root certificate there.

Regards,
Alexander
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Windows
Asked by
daniel
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or