host

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package host fetches the certificate chain a TLS server presents.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL