function
tls.getCertificateCompressionAlgorithms
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']Referenced types
type CertificateCompressionAlgorithm = 'zlib' | 'brotli' | 'zstd'