class R509::Cert::Validator::BasicValidator

Public Class Methods

new(cert, issuer) click to toggle source
# File lib/r509/cert/validator/basic_validator.rb, line 7
def initialize(cert, issuer)
  @cert = cert
  @issuer = issuer
end

Private Instance Methods

get(uri) click to toggle source
# File lib/r509/cert/validator/basic_validator.rb, line 13
def get(uri)
  resp = Net::HTTP.get_response URI(uri)
  if resp.code != '200'
    raise Error.new("Unexpected HTTP #{resp.code} from OCSP endpoint")
  end

  resp.body
end