// +build !windows package certinject import "github.com/hlandau/xlog" // This package is used to add and remove certificates to the system trust // store. // Currently only supports NSS sqlite3 stores. var log, Log = xlog.New("ncdns.certinject") // 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() } }