Reputation: 857
There is code for ssl context creation:
import ssl
ssl_context = ssl.create_default_context(cafile=..., capath=..., cadata=...)
Also there is a docker container with certs:
$ pwd
/app/cert
$ ls
ca.pem cert.pem key.pem
What values will be for cafile
, capath
, cadata
?
I tried cafile="/app/cert/ca.pem"
and capath="/app/cert"
but it gives me the error:
[SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1002)
Upvotes: 0
Views: 11