Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

convert ECPrivateKey/ECPublicKey to PEM #213

Open
spd-heshuip opened this issue Dec 14, 2019 · 1 comment
Open

convert ECPrivateKey/ECPublicKey to PEM #213

spd-heshuip opened this issue Dec 14, 2019 · 1 comment

Comments

@spd-heshuip
Copy link

How convert ECPrivateKey/ECPublicKey to PEM string?

@richardheap
Copy link
Collaborator

Pointycastle lacks the ASN.1 encode/decode functions to do this. Typically, you'd create your keys elsewhere (e.g. with openssl) and read from PEM into pointycastle. Check out the rsa_pkcs package in pub.dev. You might need to extend it to support EC keys.

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

No branches or pull requests

2 participants