M
tls.getCertificateCompressionAlgorithms
History
Added in: v26.4.0
v26.4.0
Introduced in: v0.10.0
v0.10.0
tls.getCertificateCompressionAlgorithms(): string[]
Returns:
string[]Returns an array with the names of the RFC 8879 certificate compression
algorithms supported by the current OpenSSL build, suitable for use in the
certificateCompression option of tls.createSecureContext(). Possible
values include 'zlib', 'brotli', and 'zstd'.
The array is empty when certificate compression is unavailable.
console.log(tls.getCertificateCompressionAlgorithms()); // ['zlib', 'brotli', 'zstd']