Versions in this module Expand all Collapse all v2 v2.1.0 Nov 26, 2026 v2.0.1 Nov 20, 2026 Changes in this version + const LFSPrincipal + const ProbePrincipal + func CertificatePrincipal(cert *x509.Certificate, principals map[string]string) (string, error) + func Principal(ctx context.Context) string + func ReadKey(path string) ([]byte, error) + func ReceiveIdentity(conn net.Conn, key []byte) (string, error) + func SendIdentity(conn net.Conn, key []byte, principal string) error + func WithPrincipal(ctx context.Context, principal string) context.Context + type TLSOptions struct + CertFile string + ClientCAFile string + KeyFile string + PrincipalsFile string + func (o TLSOptions) Authenticate(ctx context.Context, conn net.Conn) (net.Conn, string, error) + func (o TLSOptions) Config() (*tls.Config, map[string]string, error)