trust

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 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 trust builds CA bundles that combine the host's system roots with the emulator's local CA (Section 7.4), for clients that read a single bundle file: SSL_CERT_FILE from `gcpemu env --trust` (FR-CORE-004) and the bundle injected into GKE pods (FR-INT-007).

Index

Constants

View Source
const BundleFile = "ca-bundle.pem"

BundleFile is the combined bundle's name in the instance directory.

Variables

This section is empty.

Functions

func Append

func Append(bundle, caPEM []byte) []byte

Append returns bundle with caPEM appended, unless it already contains it.

func Bundle

func Bundle(caPEM []byte) []byte

Bundle returns the system roots followed by caPEM.

func SystemRoots

func SystemRoots() []byte

SystemRoots returns the host's system root bundle (PEM), or nil when none is found: a bundle file on Linux and macOS, the ROOT certificate store on Windows. SSL_CERT_FILE is ignored so that a bundle produced by `gcpemu env --trust` is never folded into itself.

func WriteBundle

func WriteBundle(path string, caPEM []byte) (string, error)

WriteBundle writes Bundle(caPEM) to path atomically (mode 0644: it holds only public certificates) and returns path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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