Convert certificate cer without PK into PCKS12

0

I have a Certificate in my account and need to export it to authenticate to a site - following these procedures: link . Only in the import on windows, it does not export along with the private key. How should I proceed? I have already performed the following procedure:

openssl pkcs12 -export -nokeys -in certificate.cer -out pkcs12.pfx

and it returns an error message:

96864: error: 0D0C6070: asn1 encoding routines: ASN1_item_pack: encode error: asn_pack.c: 170: unable to write 'random state'

    
asked by anonymous 17.02.2017 / 13:37

1 answer

0

From what I understood from the past link, the command to generate p12 was:

openssl pkcs12 -export -in client.crt -inkey client.key -out client.p12 -name "Whatever"

In the link itself, it says that the client's private key must also be included. You have missed this command to include the private key and publish your own. And just to confirm, the file crt or cer with the site's public certificate needs to have the whole string.

Solution

For this problem, portecle was used.

    
17.02.2017 / 14:39