Skip to content

pkeys are immutable on OpenSSL 3.0 (OpenSSL::PKey::PKeyError) #111

@ravigerardo

Description

@ravigerardo

server.generate_key

I have an app on heroku and when i try to do a payload_send it fails but in my local environment it works fine.

Apparently it is because the implementation of the generate_key method of the Encryption module is no longer supported. And I get the following error: /webpush/encryption.rb:15:in generate_key!': pkeys are immutable on OpenSSL 3.0 (OpenSSL::PKey::PKeyError)

In my local environment:

irb>> OpenSSL::OPENSSL_VERSION
=> "OpenSSL 1.1.1n 15 Mar 2022"

In production on Heroku:

irb>> OpenSSL::OPENSSL_VERSION
=> "OpenSSL 3.0.1 14 Dec 2021"

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