Skip to content

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

Open
@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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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

      OpenSSL::PKey.read does not read ed25519 PEM · Issue #315 · jruby/jruby-openssl