Use Fiddler to capture Python3 https traffic

Problem:

Sometime, if you open the fiddler for sniffing, then you send a GET request:

Use Fiddler to capture Python3 https traffic

You will meet these great amount of errors, caused by _ssl.c:852 when the fiddler is sniffing.


Solution: 

 Configure HTTPS options, make system Browsers trust the Fiddler Certificate.Use Fiddler to capture Python3 https traffic

Swtich to Internet Options: 

 Use Fiddler to capture Python3 https traffic

Export the certificate, follow these steps. 

 Use Fiddler to capture Python3 https traffic

Use Fiddler to capture Python3 https traffic

Store the ".cer" file then fill in this file with this ".cer" file path.

Use Fiddler to capture Python3 https traffic

 Restart python, then as long as the response server does not have a certificate check, you can sniff the traffic yourself~!

 Attention:

When you finish sniffing and wanna shutdown fiddler for normal use, remember to set the verify parameter to None as default!!!