Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Gem::Security::Policy#verify

verify(chain, key = nil, digests = {}, signatures = {}, full_name = "(unknown)")

For full_name, verifies the certificate chain is valid, the digests match the signatures signatures created by the signer depending on the policy settings.

If key is given it is used to validate the signing certificate.

See also #check_trust #verify_signatures #check_root also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0