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) }
func PutPrivateKeyAuthority(d Depot, key *pkix.Key) error { b, err := key.ExportPrivate() if err != nil { return err } return d.Put(AuthPrivKeyTag(), b) }