certutil

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CAName is the CN and Organization used for the httpmon root CA.
	CAName = "httpmon-ca"
)

Variables

This section is empty.

Functions

func EnsureCA added in v0.1.3

func EnsureCA(dir string) (string, error)

EnsureCA creates the CA key+cert files in dir if they don't already exist with the correct CN. Returns the path to the PEM cert file.

func Install

func Install(certPath string) error

Install adds the CA certificate at certPath to the system trust store. Requires root/sudo on both darwin and linux.

func IsInstalled added in v0.1.2

func IsInstalled(certPath string) bool

IsInstalled checks whether the CA certificate is trusted by the system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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