Jeremy M. Guthrie wrote:
It should work fine if your "key.pem" contains a valid key and matching certificate. The error you are getting suggests that your key.pem doesn't contain the certificate.-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I've tried the following and I always get "No certificate matches private key".
openssl pkcs12 -in key.pem -out key.pkcs12 -export
Amar
smime.p7s
Description: S/MIME Cryptographic Signature