Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Support cleartext PEM key import/export #244

Open
lidel opened this issue Feb 11, 2022 · 0 comments
Open

Support cleartext PEM key import/export #244

lidel opened this issue Feb 11, 2022 · 0 comments
Labels
need/triage Needs initial labeling and prioritization

Comments

@lidel
Copy link
Member

lidel commented Feb 11, 2022

go-ipfs 0.13+ will support key import/export using cleartext PEM/PKCS8 format (ipfs/kubo#8616) which enables interop with things like openssl, for example;

Key generation outside the IPFS node:

  $ openssl genpkey -algorithm ED25519 > ed25519.pem
  $ ipfs key import test-openssl -f pem-pkcs8-cleartext ed25519.pem

Using openssl to get a PEM with public key:

  $ ipfs key export testkey --format=pem-pkcs8-cleartext -o privkey.pem
  $ openssl pkey -in privkey.pem -pubout > pubkey.pem

js-libp2p-crypto should support PEM format to enable similar level of interop.
we would like to use it in ipfs/js-ipfs#2887

Ref.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

1 participant