If you need multiple certificates in a single DER structure, you're looking for something to create a "PKIpath". I've never heard of curl requiring such, though. Chances are it will handle the PEM chain just fine.
What curl command line are you trying to use?
-Kyle H
On Thu, May 21, 2020, 18:00 paul h. roubekas <paul@xxxxxxxxxxxx> wrote:
I am a complete newbie to this list.
I wanted to search the archive but found no such page.
I have a requirement to convert all certs in a *.p12 file to a *.der file for use in the curl command.
The first hop to a *.pem file has all the certs.
But the second hop only has one cert. The I read the docs but found nothing that looked even close.
Hop 1
openssl pkcs12 -chain -in trust.p12 -out ww_temp.pem -password {redacted}
Hop 2
openssl x509 -outform der -in ww_temp.pem -out ww_temp.der
The Question) How do I get all the certs in the .der file?