Skip to content

Conversation

wangtiga
Copy link

add export-pfx command, reference by #54

PKCS Format:

If you'd like to convert your certificate and key to PKCS12 format,

$ ./certstrap export-pfx Alice --chain "CertAuth"
Created out/Alice.pfx from out/Alice.crt and out/Alice.key with chain [out/CertAuth.crt]

Alice.key and Alice.crt make up the leaf private key and certificate pair of your choosing (generated by a sign command),
with CertAuth.crt being the certificate authority certificate that was used to sign it. The output PKCS12 file is Alice.pfx

or simply run openssl:

$ openssl pkcs12 -export -out out/Alice.pfx -inkey out/Alice.key -in out/Alice.crt -certfile out/CertAuth.crt

@wangtiga wangtiga requested a review from a team as a code owner October 24, 2023 14:58
@CLAassistant
Copy link

CLAassistant commented Oct 24, 2023

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants