tlsFingerprint() function
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:
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
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.