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

PKCS12 Support #180

Closed
Jakub91 opened this issue Dec 17, 2022 · 3 comments
Closed

PKCS12 Support #180

Jakub91 opened this issue Dec 17, 2022 · 3 comments

Comments

@Jakub91
Copy link

Jakub91 commented Dec 17, 2022

Hello, is it possible that you will add support for PKCS12 in the near future? Thank you.

@Ephenodrom
Copy link
Contributor

@Jakub91
What are your requirements ?

  • PKCS12 with / without encryption ?
  • If encrypted, which algorithm ?

@Ephenodrom
Copy link
Contributor

Ephenodrom commented Feb 22, 2023

@Jakub91
PKCS12 creation is now available via https://github.com/Ephenodrom/Dart-Basic-Utils.

Here is an example with the corresponding openssl call :

var privateKey = ''; // PEM
var chain = ['','','']; // LIST OF PEM
// openssl pkcs12 -export -passout pass:Beavis -out bundle.pfx -inkey priv.key -in chain.pem
var bytes = Pkcs12Utils.generatePkcs12(
    privateKey,
    chain,
    password: 'Beavis'
);

@Ephenodrom
Copy link
Contributor

#187

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

No branches or pull requests

2 participants