Documentation ¶ Overview ¶ Package host fetches the certificate chain a TLS server presents. Index ¶ func Chain(addr string, timeout time.Duration) (string, []*x509.Certificate, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Chain ¶ func Chain(addr string, timeout time.Duration) (string, []*x509.Certificate, error) Chain connects to addr ("host" or "host:port", default port 443) and returns the certificates the server sent. It does not verify them: the point is to inspect exactly what the server presents. Types ¶ This section is empty. Source Files ¶ View all Source files host.go Click to show internal directories. Click to hide internal directories.