Score:1

Multiple CA certs - How to convert them in single file (may be .pem ) and use them?

pe flag

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) ?

Steffen Ullrich avatar
se flag
Assuming the files are in PEM format: `cat *.crt > bundle.pem`.
Simplecode avatar
pe flag
And if any one is in the .crt format, then copy the contents in the .pem file ?
Steffen Ullrich avatar
se flag
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)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.