Only need 1 code snippet: Python Save SSLKEYLOGFILE on Ubuntu 20

Job ID: 32320785

Budget: $30 – $50 USD

When I make a request in Python using Requests if I first set the SSLKEYLOGFILE:

os.environ['SSLKEYLOGFILE'] = TLS_LOG_FILE
r = requests.get('https://www.google.com')

TLS_LOG_FILE now populated with tls session keys
Then it works on a macbook pro but not when I deploy it to ovh bare metal or aws ec2.

All I need is for the file to be populated on Ubuntu the same way it is on a OSX.

Deliverables
One short code snippet or bash file that shows TLS_LOG_FILE saving properly.