1

I am using python http.client for making requests to server. I am using multiple ssl_ca certs and I specify them using the load_verify_locations multiple times.

However, in python requets only a single file can be given as certs for ssl. How do I convert the multiple .crt files as single file (may be .crt or .pem) ?

Simplecode
  • 111
  • 3
  • 1
    Assuming the files are in PEM format: `cat *.crt > bundle.pem`. – Steffen Ullrich Oct 08 '21 at 17:31
  • And if any one is in the .crt format, then copy the contents in the .pem file ? – Simplecode Oct 10 '21 at 05:24
  • 2
    There is no .crt format. .crt is a file extension not a format. It is usually either PEM or DER format in this file. To convert between formats use `openssl x509 -in cert.der -inform der -out cert.pem` (again, file extensions don't matter so the input file might also be called cert.crt etc) – Steffen Ullrich Oct 10 '21 at 05:30

0 Answers0