Method: Mongo::Socket::OcspVerifier#verify

Defined in:
lib/mongo/socket/ocsp_verifier.rb

#verifytrue | false

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns Whether the certificate was verified.

Returns:

  • (true | false)

    Whether the certificate was verified.

Raises:

Since:

  • 2.0.0



122
123
124
125
126
127
128
129
# File 'lib/mongo/socket/ocsp_verifier.rb', line 122

def verify
  handle_exceptions do
    return false if ocsp_uris.empty?

    resp, errors = do_verify
    return_ocsp_response(resp, errors)
  end
end