I am trying to write a tool to generate a lot of requests from Python. The requests require a certificate to be attached to each request.
Meaning I am doing something like:
requests.post('/path/',
cert=('cert.pem', 'private.key'))
verify=False)
How can I make sure the certificate is read from memory instead of the file each time? Because I suspect this is slowing things down.
For generating the load I am using grequests.