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

OpenSSL::PKey.read does not read ed25519 PEM #315

Open
segiddins opened this issue Sep 24, 2024 · 0 comments
Open

OpenSSL::PKey.read does not read ed25519 PEM #315

segiddins opened this issue Sep 24, 2024 · 0 comments

Comments

@segiddins
Copy link

#!/usr/bin/env ruby

require "rubygems"
require "openssl"

pem = "-----BEGIN PUBLIC KEY-----\n" + "MCowBQYDK2VwAyEAVHg6pXoV4tdz99QgYcF9FamXBw4ialK0qABPkbQf9po=\n" + "-----END PUBLIC KEY-----\n"

pp OpenSSL::PKey.read(pem)

on jruby:

OpenSSL::PKey::PKeyError: Could not parse PKey: unsupported
  <main> at Untitled 2.rb:8

on mri:

#<OpenSSL::PKey::PKey:0x000000011fb3b198 oid=ED25519>
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