From 7d61c0003ced2bcad1649aa57cf4a18bccfcee1d Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Fri, 15 May 2020 11:32:12 -0700 Subject: [PATCH] Enable softkms and cloudkms. --- kms/kms.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kms/kms.go b/kms/kms.go index 8daf148f..310214f0 100644 --- a/kms/kms.go +++ b/kms/kms.go @@ -6,6 +6,13 @@ import ( "github.com/pkg/errors" "github.com/smallstep/certificates/kms/apiv1" + + // Enabled kms interfaces. + _ "github.com/smallstep/certificates/kms/cloudkms" + _ "github.com/smallstep/certificates/kms/softkms" + + // Experimental kms interfaces. + _ "github.com/smallstep/certificates/kms/yubikey" ) // KeyManager is the interface implemented by all the KMS. @@ -28,7 +35,7 @@ func New(ctx context.Context, opts apiv1.Options) (KeyManager, error) { fn, ok := apiv1.LoadKeyManagerNewFunc(t) if !ok { - return nil, errors.Errorf("unsupported kms type '%s'", opts.Type) + return nil, errors.Errorf("unsupported kms type '%s'", t) } return fn(ctx, opts) }