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
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 ¶
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
IsInstalled checks whether the CA certificate is trusted by the system.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.