Skip to content

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

@segiddins

Description

@segiddins
#!/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>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions