Example #1
0
func PutPrivateKeyHost(d Depot, name string, key *pkix.Key) error {
	b, err := key.ExportPrivate()
	if err != nil {
		return err
	}
	return d.Put(HostPrivKeyTag(name), b)
}
Example #2
0
func PutPrivateKeyAuthority(d Depot, key *pkix.Key) error {
	b, err := key.ExportPrivate()
	if err != nil {
		return err
	}
	return d.Put(AuthPrivKeyTag(), b)
}