Skip to content
Advertisement

Tag: certificate

Python requests trust certificate in cer-file

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.

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

Advertisement