You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.
folks:
the ykksm-import command line command fails when trying to insert (e.g. update) an existing key. this is correct behavior for the SQL insert command, but leaves me unable to re-program an existing key's values - which i need to do occasionally.
I have modified my local copy of ykksm-import to add a -f flag to overwrite an existing key, leaving the default behavior unchanged.
here are my questions:
a) anybody else encounter this issue? am i missing some other way to update the KSM when you re-provision the same serial number key?
b) i am not much of a git expert, perl or mysql programmer, but am happy to post my modified version up here, if folks would find it useful. let me know if so, and where would be best to put it.
thanks...
The text was updated successfully, but these errors were encountered:
jerichod505
changed the title
ykksm-import: unable to update an existing key entry
ykksm-import: unable to update an existing key entry (updated)
Jun 4, 2014
Update 6/3/14 -
i posted this note about modifying ykksm-import a bit too early. after testing it more i discovered that there is more to reprogramming a key that uses the same public id but different private identity and aes keys - the ykvla/yubikeys table, which holds counters and the nonce, needs to have its row corresponding to the yubikey public id cleared as well.
i am stepping back from modifying ykksm-import, since it would now modify two tables. bad idea. instead i am thinking about a tool to 'cleanup' and reset the databases for a reprogramed key of the same serial number. the current web admin system does not do this...
i would appreciate any thoughts from yubikey on this....
thanks.
So.. From the way the projects are used at Yubico a public id may never be reused (as can be witnessed by the complete lack of support to reset/overwrite).
Generally it's recommended to go that path and use a new public id every time.
As you noticed it is a bad idea to do this, since ykval will be confused. We could consider supporting this with a -f flag or something, but I don't think it makes sense (people who need this can modify the database directly).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
folks:
the ykksm-import command line command fails when trying to insert (e.g. update) an existing key. this is correct behavior for the SQL insert command, but leaves me unable to re-program an existing key's values - which i need to do occasionally.
I have modified my local copy of ykksm-import to add a -f flag to overwrite an existing key, leaving the default behavior unchanged.
here are my questions:
a) anybody else encounter this issue? am i missing some other way to update the KSM when you re-provision the same serial number key?
b) i am not much of a git expert, perl or mysql programmer, but am happy to post my modified version up here, if folks would find it useful. let me know if so, and where would be best to put it.
thanks...
The text was updated successfully, but these errors were encountered: