You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@minakov Are you sure that should end with .public_key? In my case I had to end with OpenSSL::PKey::EC.new(pem)
instead of OpenSSL::PKey::EC.new(pem).public_key
(using ES256 instead of RS256).
When I add .public_key I get: NoMethodError: undefined method `dsa_verify_asn1' for #<OpenSSL::PKey::EC::Point:0x007f8625153d50>
@jhmartin You should use OpenSSL::X509::Certificate.new(json[header['kid']]).keypair instead.
It returns OpenSSL::PKey::EC that have dsa_verify_asn1 method.
I'm looking for documentation on using the key finder code block for the JWT.decode method. Is there any?
The text was updated successfully, but these errors were encountered: