property
RedisOptions.tls
tls?: boolean | TLSOptions & { checkServerIdentity: (hostname: string, cert: PeerCertificate) => undefined | Error }
TLS options. serverName sets the SNI and the name the certificate is verified against, which default to the URL host.