I try to extract public and private keys from PKCS#12 certificate with openssl and always have the same error, even i just want to see it without output file (with flag -info)
after the certificate himself i see this:
-----END CERTIFICATE----- PKCS7 Data Shrouded Keybag: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 2048 Bag Attributes localKeyID: 61 D1 40 34 84 2B 94 88 B1 77 23 C2 7F 46 30 DB 8C 4C 26 3A friendlyName: p12_name_iwn Error outputting keys and certificates 22184:error:100D5010:elliptic curve routines:eckey_priv_decode:EC lib::0: 22184:error:0606F091:digital envelope routines:EVP_PKCS82PKEY:private key decode error::0: error in pkcs12 `
I have separated private key from this certificate, exported from standard Microsoft Manager Console, in .pfx format, when i try to extract him to change it to .pem format, i still have the same error....
Openssl version I use :
pkcs12 -in file.p12 -info
(I used the same command with -outpu file.pem flag, but have the same issue)
Someone have solution for this, maybe? Thanks a lot.