Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create key - Error generating key #83

Closed
laamalif opened this issue Jul 19, 2023 · 3 comments
Closed

Failed to create key - Error generating key #83

laamalif opened this issue Jul 19, 2023 · 3 comments

Comments

@laamalif
Copy link

laamalif commented Jul 19, 2023

$ step kms create 'yubikey:slot-id=9a' --kms 'yubikey:?pin-value=987654'

Error: failed to create key: error generating key: authenticating with management key: auth challenge: smart card error 6982: security status not satisfied
exit status 1

Update:

With Non Default Management Key (010203040506070801020304050607080102030405060708)

Error: verify pin: smart card error 63c2: verification failed

With Non Default PIN/PUK

step ca certificate --attestation-uri 'yubikey:slot-id=9a' --kms 'yubikey:?pin-value=987654' --provisioner acme-da 17634747 17634747.crt

Error: verify pin: smart card error 63c2: verification failed (2 retries remaining)

With Default PIN/PUK/Management Key all went well.

@maraino
Copy link
Contributor

maraino commented Jul 21, 2023

Hi @laamalif, have you tried passing the management-key attribute:

step kms create 'yubikey:slot-id=9a;management-key= 010203040506070801020304050607080102030405060708?pin-value=987654`

Note that the step-kms-plugin does not require the --kms flag. You can put everything in the same argument. This is not currently the case for step

@adamcstephens
Copy link

Adding the management fixed the problem for me. I had used yubikey-agent and it changed the management key.

@maraino
Copy link
Contributor

maraino commented Dec 15, 2023

Works as expected. Adding the management-key attribute fixes this.

@maraino maraino closed this as completed Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants