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

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

Open
xinlake opened this issue Jun 21, 2024 · 0 comments

Comments

@xinlake
Copy link

xinlake commented Jun 21, 2024

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?

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

1 participant