tlsutil

package
v5.62.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tlsutil provides small helpers for building outbound TLS trust from operator-provided CA files.

It exists so the process-wide --extra-ca-file trust (installed on http.DefaultTransport at startup) and the explicit per-client CA pools that mcp-oauth's permissive JWKS / token-exchange clients now require are built from one place and therefore verify against an identical pool (system roots plus the operator's extra CAs).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCAPool

func LoadCAPool(path string) (*x509.CertPool, error)

LoadCAPool reads PEM-encoded certificates from path and returns a pool containing the system trust roots plus those certificates. It is the single place that turns an operator-provided CA file into an outbound trust pool, so every consumer (the process-wide http.DefaultTransport install and the explicit CA pools handed to mcp-oauth's permissive JWKS / token-exchange clients) verifies against an identical pool.

A missing/unreadable file or unparseable PEM is an error: muster's outbound dependencies should never silently fall back to the unaugmented system pool when the operator asked for an internal CA.

Types

This section is empty.

Jump to

Keyboard shortcuts

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