2
0
mirror of https://github.com/namecoin/ncdns synced 2024-11-04 06:00:24 +00:00
ncdns/certinject/certinject_notwindows.go

29 lines
549 B
Go
Raw Normal View History

// +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()
}
}