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

Support cleartext PEM key import/export #244

@lidel

Description

@lidel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions