Skip to content

OpenSSL::PKey::PKeyError when JOSE::JWK.generate_key([:rsa, 1024]) #24

@TC-SJ-Yoon

Description

@TC-SJ-Yoon

Hello,

I've updated Ruby version from 3.0.2 to 3.2.2 on my Mac (Intel chip) with this

brew install openssl@1.1
ruby-install ruby-3.2.2 -- --with-openssl-dir=$(brew --prefix openssl@1.1)
chruby 3.2.2

In the gem file I have...

gem 'jose'
gem 'jwt'

When I generate key like this..

jwk = JOSE::JWK.generate_key([:rsa, 1024])

I receive the error

Minitest::UnexpectedError: OpenSSL::PKey::PKeyError: EVP_PKEY_CTX_ctrl_str(ctx, "rsa_keygen_pubexp", "")

I'm not sure how to debug the issue. Could someone help me to figure out the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions