Python - requests the SSL library key of an HTTP library

I use the request library to complete the connection with https sites. This works fine, my only problem is that wirehark no longer captures textual information on the "SSL Decrypted Data" tab, as it happens after following this instruction:

https://jimshaver.net/2015/02/11/decrypting-tls-browser-traffic-with-wireshark-the-easy-way/

Setting an environment variable that allows Chrome and firefox to store ssl keys in a file, wirehark uses this file in real time.

Is this the way I can modify a simple https script request, for example:

import requests resp = requests.get("https://www.google.com", allow_redirects=True) 

to save ssl key to file like chrome and firefox?

From what I understand about OpenSSL implementations that will do this, you will need to find the main secret key and session key in memory - is this doable when running from cmd or practical?

+5
source share
1 answer

openssl s_client -connect www.google.com:443 -showcerts

You will see all the certificates that google uses.

-2
source

All Articles