Skip to content

Error with method sign for String #171

@jmjurado23

Description

@jmjurado23

The error is:
undefined method `sign' for #String:0x00000002fbbb78

In line:
def sign_rsa(algorithm, msg, private_key)
private_key.sign(OpenSSL::Digest.new(algorithm.sub('RS', 'sha')), msg)
end

In file: jwt.rb 35

String class (private_key) not have sign method.

What is the problem?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions