cryptography icon indicating copy to clipboard operation
cryptography copied to clipboard

How do I sign a message using a PEM key created by OpenSSL with the ED25519 algorithm?

Open xinlake opened this issue 1 year ago • 0 comments

I created an ED25519 PEM key using OpenSSL:

openssl genpkey -algorithm ED25519 -outform PEM -out ed15519.pem

The content of the PEM file may look like this:

-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEIIbOW5Du0BZgisHQLHJ7vxwpThZLsUJfK5a2gf/BvfwH
-----END PRIVATE KEY-----

Next, how do I sign a message using the cryptography library?

xinlake avatar Jun 21 '24 07:06 xinlake