I got such certificate : certificate.base64.cer And I want to send request using it api.py but I get How to fix that? What is wrong? Answer Python requests trust certificate in cer-file session.cert is used for authentication using client certificates. For specifying the trusted CA session.verify must be used instead. For more see the documentation.
Tag: certificate
Python Uvicorn – obtain SSL certificate information
I have a gunicorn + uvicorn + fastApi stack. (Basically, I am using https://hub.docker.com/r/tiangolo/uvicorn-gunicorn-fastapi docker image). I’ve already implemented SSL based authentication by providing appropriate gunicorn configuration options: certfile, keyfile, ca_certs, cert_reqs. And it works fine: user have to provide a client SSL certificate in order to be able to make an API calls. What I need to do now
How to open ssl socket using certificate stored in string variables in python
In Python, ssl.wrap_socket can read certificates from files, ssl.wrap_socket require the certificate as a file path. How can I start an SSL connection using a certificate read from string variables? My host environment does not allow write to files, and tempfile module is not functional I’m using Python 2.7. I store the certificate inside MySQL and read as a string.