Documentation ¶
Overview ¶
Package aghtls contains utilities for work with TLS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificateHasIP ¶ added in v0.107.17
func CertificateHasIP(cert *x509.Certificate) (ok bool)
CertificateHasIP returns true if cert has at least a single IP address among its subjectAltNames.
func ParseCiphers ¶ added in v0.107.17
ParseCiphers parses a slice of cipher suites from cipher names.
func SaferCipherSuites ¶
func SaferCipherSuites() (safe []uint16)
SaferCipherSuites returns a set of default cipher suites with vulnerable and weak cipher suites removed.
func SystemRootCAs ¶ added in v0.107.17
SystemRootCAs tries to load root certificates from the operating system. It returns nil in case nothing is found so that Go' crypto/x509 can use its default algorithm to find system root CA list.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.