openssl export -chain trusted CA certificates

Where OpenSSL Stores Its Trusted CA Certificates: Using "openssl pkcs12 -export -chain"

Submitted by Eus
on July 18, 2010 - 12:02pm

About three weeks ago I tried to export a public key certificate X along with the certificate of the CA that signs X, by adding "-chain" switch to "openssl pkcs12 -export -out del.pkcs12 -in newcert.pem -inkey newkey.pem". However, I got an error: Error unable to get local issuer certificate getting chain.