8// TLSInfo returns human-readable strings about the TLS connection, for use in
10func TLSInfo(cs tls.ConnectionState) (version, ciphersuite string) {
11 // e.g. tls1.3, instead of "TLS 1.3"
12 version = tls.VersionName(cs.Version)
13 version = strings.ToLower(version)
14 version = strings.ReplaceAll(version, " ", "")
16 ciphersuite = tls.CipherSuiteName(cs.CipherSuite)
17 ciphersuite = strings.ToLower(ciphersuite)