class PassiveTotal::Client::SSL

Public Instance Methods

get(query) click to toggle source

Retrieves an SSL certificate by its SHA-1 hash. api.passivetotal.org/api/docs/#api-SSL_Certificates-GetV2SslCertificate

@param [String] query SHA-1 hash of the certificate to retrieve

@return [Hash]

# File lib/passivetotal/clients/ssl.rb, line 30
def get(query)
  params = {
    query: query,
  }.compact

  _get("/ssl-certificate", params) { |json| json }
end
history(query) click to toggle source

Retrieves the SSL certificate history for a given certificate SHA-1 hash or IP address. api.passivetotal.org/api/docs/#api-SSL_Certificates-GetV2SslCertificateHistory

@param [String] query SHA-1 hash or associated IP address for which to retrieve certificate history

@return [Hash]

# File lib/passivetotal/clients/ssl.rb, line 14
def history(query)
  params = {
    query: query,
  }.compact

  _get("/ssl-certificate/history", params) { |json| json }
end
keyword(query) click to toggle source

Retrieves SSL certificates for a given keyword. api.passivetotal.org/api/docs/#api-SSL_Certificates-GetV2SslCertificateSearchKeyword

@param [String] query keyword on which to search

@return [Hash]

# File lib/passivetotal/clients/ssl.rb, line 46
def keyword(query)
  params = {
    query: query,
  }.compact

  _get("/ssl-certificate/search/keyword", params) { |json| json }
end