Skip to main content
verifyNoiseCertificateChain(certChain, serverStaticKey, root): void
Defined in: src/Utils/noise-handler.ts:67 Verifies the certificate chain the server sends in its Noise hello, the same way WhatsApp Web does (WAVerifyChainCertificateWA6):
  • the intermediate is issued (issuer serial) and signed by the pinned WhatsApp root,
  • the leaf is issued (issuer serial) and signed by the intermediate,
  • the leaf key is the server static key from this handshake. Without the last check a valid chain could be replayed next to any other static key. Throws a Boom with status 400 when any check fails.

Parameters

certChain

Uint8Array

serverStaticKey

Uint8Array

root

NoiseCertificateRoot = ...

Returns

void