mtls

package
v1.99.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mtls provides helpers for building mutual-TLS configs used between yarilo components (auth, anvil, director, imap-login → imap, etc.). All inter-component connections use TLS 1.3 with client-cert verification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConfig

func ClientConfig(certFile, keyFile, caFile string) (*tls.Config, error)

ClientConfig returns a *tls.Config for mTLS clients. The client presents certFile/keyFile and verifies the server against caFile.

func ServerConfig

func ServerConfig(certFile, keyFile, caFile string) (*tls.Config, error)

ServerConfig returns a *tls.Config for mTLS servers. The server presents certFile/keyFile and requires clients to present a cert signed by the CA in caFile.

Types

This section is empty.

Jump to

Keyboard shortcuts

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