mitmca

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package mitmca provides the ephemeral certificate authority shared by term-llm's loopback TLS proxies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authority

type Authority struct {
	// contains filtered or unexported fields
}

Authority is an in-memory certificate authority. Its private key is never written to disk.

func New

func New(name string) (*Authority, error)

New creates a short-lived certificate authority with the supplied name.

func (*Authority) BundleWithSystemRoots

func (a *Authority) BundleWithSystemRoots(additional ...[]byte) ([]byte, error)

BundleWithSystemRoots returns a PEM bundle containing system roots, the supplied additional certificates, and this authority's public certificate.

func (*Authority) CertPEM

func (a *Authority) CertPEM() []byte

CertPEM returns a copy of the public CA certificate.

func (*Authority) Leaf

func (a *Authority) Leaf(host string) (tls.Certificate, error)

Leaf creates a short-lived server certificate for host.

Jump to

Keyboard shortcuts

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