> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# verifyNoiseCertificateChain

> Verifies the certificate chain the server sends in its Noise hello, the same way

> **verifyNoiseCertificateChain**(`certChain`, `serverStaticKey`, `root`): `void`

Defined in: [src/Utils/noise-handler.ts:67](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/noise-handler.ts#L67)

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`](https://baileys.wiki/api-reference/type-aliases/NoiseCertificateRoot) = `...`

## Returns

`void`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.