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

Support for encrypted PEM #12

Open
TJKoury opened this issue Oct 15, 2021 · 3 comments
Open

Support for encrypted PEM #12

TJKoury opened this issue Oct 15, 2021 · 3 comments

Comments

@TJKoury
Copy link

TJKoury commented Oct 15, 2021

Any plans to support OpenSSL encrypted PEM? For now looking to support PKCS8 using pbeWithMD5AndDES-CBC to be interoperable with OpenSSL.

@rmhrisk
Copy link

rmhrisk commented Oct 15, 2021

Not currently. OpenSSL also supports AES-GCM based PEM files. We’d accept a PR to support them.

@microshine
Copy link
Contributor

MD5 and DES-CBC algorithms are not supported by WebCrypto API. You also need an extended crypto module.

webcrypto-liner (for Browser) and @peculiar/webcrypto (for NodeJS) implement DES-CBC.

@CMCDragonkai
Copy link

CMCDragonkai commented Feb 22, 2023

@microshine can you provide an example of how to load an encrypted PEM (that is accepted by openssl) into x509 using your @peculiar/webcrypto library?

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

4 participants