Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add export-pfx command #215

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

add export-pfx command #215

wants to merge 3 commits into from

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.

None yet

2 participants