coderslay
coderslay

Reputation: 14370

How to create p12 file from Private key file?

I have a Private key with a secure passphrase. How to create .p12 file from it? I have tried the command >openssl pkcs12 -export -inkey myprivatekey -out test.p12

But nothing is happening. How to generate it?

Upvotes: 0

Views: 542

Answers (1)

doptimusprime
doptimusprime

Reputation: 9395

See the documentation of pkcs12 here. I think you also need to mention certfile. In PKCS #12, a certificate and a private needed. Optionally you can include certificate chain by giving CAfile and CApath.

Upvotes: 1

Related Questions