Function downloadIssuerCert

  • Function to download and parse the certificate of the issuer of a certificate This function is used internally to download the issuer certificate if it is not provided in the config Its exported for convenience if you want to download the issuer certificate manually for some reason

    Parameters

    • cert:
          | string
          | Buffer
          | X509Certificate
          | Certificate

      The certificate to download the issuer certificate for

    • Optionaltimeout: number

      Optional timeout in milliseconds for the request. Default is 6000ms

    Returns Promise<pkijs.Certificate>

    A pkijs.Certificate object of the issuer certificate