forked from TrueCloudLab/certificates
Remove unused code.
This commit is contained in:
parent
fcaaab94a4
commit
9607eddd6a
1 changed files with 0 additions and 12 deletions
12
pki/pki.go
12
pki/pki.go
|
@ -117,18 +117,6 @@ func GetProvisioners(caURL, rootFile string) (provisioner.List, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func generateDefaultKey() (crypto.Signer, error) {
|
|
||||||
priv, err := keyutil.GenerateDefaultKey()
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
signer, ok := priv.(crypto.Signer)
|
|
||||||
if !ok {
|
|
||||||
return nil, errors.Errorf("type %T is not a cyrpto.Signer", priv)
|
|
||||||
}
|
|
||||||
return signer, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetProvisionerKey returns the encrypted provisioner key with the for the
|
// GetProvisionerKey returns the encrypted provisioner key with the for the
|
||||||
// given kid.
|
// given kid.
|
||||||
func GetProvisionerKey(caURL, rootFile, kid string) (string, error) {
|
func GetProvisionerKey(caURL, rootFile, kid string) (string, error) {
|
||||||
|
|
Loading…
Reference in a new issue