# tlsFingerprint() function · @imqueue/core

Source: https://imqueue.org/api/core/latest/core.tlsfingerprint/
Published: 2026-08-31
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/core 3.5.0 — generated reference, not hand-written

Computes a stable fingerprint of a TLS configuration, used to keep connections that differ in their transport security out of the same connection pool slot.

Two configurations that are equal by value share a fingerprint, so pooling still works across independently built option literals. Any difference in the trust anchors, the client certificate, the verification callbacks or the expected server name yields a different one.

**Signature:**

```typescript
export declare function tlsFingerprint(tls: boolean | TlsOptions): string;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| tls | boolean \| TlsOptions | the TLS configuration, as accepted by |


**Returns:**

string

a hex digest identifying the configuration

