Hi. In a web browser it is possible to export a certificate chain as a single 
(pem/crt) file on disk. I wonder if the same is possible using Python and 
pyOpenSSL? I've played around with the connection.get_peer_cert_chain() method, 
which returns a list of X509 objects. Not sure how to process those properly 
and have them saved as a cert chain in a single valid cert file, that later can 
be passed in as a "verify" param when calling "requests.post(url, verify=<cert 
file>...)". Does anyone know and can share a code snippet? Thanks!

/Mikael
_______________________________________________
Cryptography-dev mailing list
Cryptography-dev@python.org
https://mail.python.org/mailman/listinfo/cryptography-dev

Reply via email to