Skip to content

Issues with TPM2 #282

@udf2457

Description

@udf2457

(I originally opened this over in smallstep/docs/issues/466, but I'm leaning to this being an issue with step-kms-create instead as I have tried the other constructs suggested by step-kms-plugin create -h and they all return the same error).

Smallstep CLI/0.28.7 (linux/amd64)
step-kms-plugin/0.15.1 (linux/amd64)

according to [step-ca/cryptographic-protection.mdx]

step kms create --json 'tpmkms:name=my-intermediate-ca' is supposed to be sufficient.

The reality appears to be somewhat different:

$ step kms create --json 'tpmkms:name=foobar.example.com'
Error: failed to create key: failed creating key: failed creating key "foobar.example.com": failed to get SRK handle: EvictControl failed: error code 0x4c : NV Index or persistent object already defined

The user executing the command is a member of the tss group and /dev/tpmrm0 is present with the correct permissions:

$ ls -la /dev/tpmrm0
crw-rw---- 1 tss tss 254, 65536

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions