forked from TrueCloudLab/certificates
Add type for azurekms.
This commit is contained in:
parent
56c3559e52
commit
656099c4f0
1 changed files with 4 additions and 1 deletions
|
@ -73,6 +73,8 @@ const (
|
||||||
YubiKey Type = "yubikey"
|
YubiKey Type = "yubikey"
|
||||||
// SSHAgentKMS is a KMS implementation using ssh-agent to access keys.
|
// SSHAgentKMS is a KMS implementation using ssh-agent to access keys.
|
||||||
SSHAgentKMS Type = "sshagentkms"
|
SSHAgentKMS Type = "sshagentkms"
|
||||||
|
// AzureKMS is a KMS implementation using Azure Key Vault.
|
||||||
|
AzureKMS Type = "azurekms"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Options are the KMS options. They represent the kms object in the ca.json.
|
// Options are the KMS options. They represent the kms object in the ca.json.
|
||||||
|
@ -118,8 +120,9 @@ func (o *Options) Validate() error {
|
||||||
|
|
||||||
switch Type(strings.ToLower(o.Type)) {
|
switch Type(strings.ToLower(o.Type)) {
|
||||||
case DefaultKMS, SoftKMS: // Go crypto based kms.
|
case DefaultKMS, SoftKMS: // Go crypto based kms.
|
||||||
case CloudKMS, AmazonKMS, SSHAgentKMS: // Cloud based kms.
|
case CloudKMS, AmazonKMS, AzureKMS: // Cloud based kms.
|
||||||
case YubiKey, PKCS11: // Hardware based kms.
|
case YubiKey, PKCS11: // Hardware based kms.
|
||||||
|
case SSHAgentKMS: // Others
|
||||||
default:
|
default:
|
||||||
return errors.Errorf("unsupported kms type %s", o.Type)
|
return errors.Errorf("unsupported kms type %s", o.Type)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue