You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ncdns/certinject/certinject_notwindows.go

25 lines
470 B
Go

// +build !windows
package certinject
// This package is used to add and remove certificates to the system trust
// store.
// Currently only supports NSS sqlite3 stores.
// InjectCert injects the given cert into all configured trust stores.
func InjectCert(derBytes []byte) {
if nssFlag.Value() {
injectCertNss(derBytes)
}
}
// CleanCerts cleans expired certs from all configured trust stores.
func CleanCerts() {
if nssFlag.Value() {
cleanCertsNss()
}
}