Type alias TLSVerifyCallback

TLSVerifyCallback: ((certs, ca) => PromiseLike<CryptoError | undefined>)

Type declaration

    • (certs, ca): PromiseLike<CryptoError | undefined>
    • Custom TLS verification callback. The peer cert chain will be passed as the first parameter. The CA certs will also be available as a second parameter. The certs are in DER binary format. It will be an empty array if there were no CA certs. If it fails, return a CryptoError code.

      Parameters

      • certs: Uint8Array[]
      • ca: Uint8Array[]

      Returns PromiseLike<CryptoError | undefined>

Generated using TypeDoc