|
|
|
@ -20,6 +20,7 @@ import (
|
|
|
|
|
"github.com/smallstep/assert"
|
|
|
|
|
"github.com/smallstep/certificates/api"
|
|
|
|
|
"github.com/smallstep/certificates/authority"
|
|
|
|
|
"github.com/smallstep/certificates/authority/provisioner"
|
|
|
|
|
"github.com/smallstep/cli/crypto/keys"
|
|
|
|
|
"github.com/smallstep/cli/crypto/pemutil"
|
|
|
|
|
"github.com/smallstep/cli/crypto/randutil"
|
|
|
|
@ -389,7 +390,7 @@ func TestCAProvisionerEncryptedKey(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"ok": func(t *testing.T) *ekt {
|
|
|
|
|
p := config.AuthorityConfig.Provisioners[2]
|
|
|
|
|
p := config.AuthorityConfig.Provisioners[2].(*provisioner.JWK)
|
|
|
|
|
return &ekt{
|
|
|
|
|
ca: ca,
|
|
|
|
|
kid: p.Key.KeyID,
|
|
|
|
|