cs_get_cert: Get Certificate Object

Description Usage Arguments Note

View source: R/cs-get-cert.r

Description

Uses the sslmate Cert Spotter API to retrieve the certificate object for a given SHA256 hash.

Usage

1
2
cs_get_cert(sha256, as = c("df", "pem", "der"),
  sslmate_api_key = Sys.getenv("SSLMATE_API_KEY"))

Arguments

sha256

hex-encoded SHA-256 digest of the (pre-)certificate.

as

determines the return type. df returns a data frame, pem returns an X.509 cert in PEM format (raw), der returns a DER encoded X.509 cert that is decoded with openssl::read_cert().

sslmate_api_key

(optional) See Note.

Note

Unauthenticated access to the API may be subject to rate limits. Get an API key here.


hrbrmstr/sslsaran documentation built on May 28, 2019, 12:59 p.m.