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')

    • Optional config: OCSPStatusConfig

      Provide optional additional configuration

    Returns Promise<OCSPStatusResponse>

    Revocation status of the certificate and additional information if available

    Throws

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

    Throws

    AbortError if the request timed out