示例#1
0
文件: pkix.go 项目: wulonghui/ca-ctl
func PutCertificateHost(d Depot, name string, crt *pkix.Certificate) error {
	b, err := crt.Export()
	if err != nil {
		return err
	}
	return d.Put(HostCrtTag(name), b)
}
示例#2
0
文件: pkix.go 项目: wulonghui/ca-ctl
func PutCertificateAuthority(d Depot, crt *pkix.Certificate) error {
	b, err := crt.Export()
	if err != nil {
		return err
	}
	return d.Put(AuthCrtTag(), b)
}