I am using requests
to consume a web service in https protocol. I used to verify the server certificate by setting verify
as the file path to the certificate.
But now I want to store the server certificate to the database. At the runtime, the certificate will be loaded in memory as a string.
The question is whether it is possible to pass the server certificate to requests
as string.
One more thought: is it possible to point verify
to a cert file in Cloud storage such as Amazon S3, Google storage etc?