diff --git a/cmd/step-cloudkms-init/main.go b/cmd/step-cloudkms-init/main.go index d23a31e9..69573c5d 100644 --- a/cmd/step-cloudkms-init/main.go +++ b/cmd/step-cloudkms-init/main.go @@ -234,7 +234,7 @@ func createSSH(c *cloudkms.CloudKMS, project, location, keyRing string, protecti resp, err = c.CreateKey(&apiv1.CreateKeyRequest{ Name: parent + "/ssh-host-key", SignatureAlgorithm: apiv1.ECDSAWithSHA256, - ProtectionLevel: apiv1.Software, + ProtectionLevel: protectionLevel, }) if err != nil { return err