Function getCertStatusByDomain

  • Download the tls certificate that is used for a domain and check its revocation status. This is a convenience function that combines downloadCert and getCertStatus.

    Parameters

    • domain: string

      Domain to check the certificate for (e.g. 'github.com')

    • Optionalconfig: OCSPStatusConfig

      Provide optional additional configuration

    Returns Promise<OCSPStatusResponse>

    Revocation status of the certificate and additional information if available

    Error if the certificate could not be retrieved or the OCSP request failed

    AbortError if the request timed out