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

No library function for getting device's serial number #33

Closed
cornelinux opened this issue Sep 5, 2016 · 2 comments
Closed

No library function for getting device's serial number #33

cornelinux opened this issue Sep 5, 2016 · 2 comments
Assignees
Milestone

Comments

@cornelinux
Copy link
Contributor

When initializing the nitrokey, I would like to retrieve the serial number of the key.
What is the best way, to retrieve this? NK_status?
How would I have to interpret the returned structure?

@szszszsz
Copy link
Member

szszszsz commented Sep 5, 2016

Currently the only way is to use NK_status() function and parsing its string output. However implementation of dedicated function should not be a problem.

@szszszsz szszszsz changed the title NK_status good for getting serial number? No library function for getting device's serial number Sep 5, 2016
@szszszsz szszszsz modified the milestone: v1.1 Sep 5, 2016
@cornelinux
Copy link
Contributor Author

I managed to adapt my python code to transform the return value of status() to a dict. Works fine for me, for now. Thx!

szszszsz added a commit that referenced this issue Sep 8, 2016
@szszszsz szszszsz self-assigned this Sep 8, 2016
szszszsz added a commit that referenced this issue Sep 8, 2016
szszszsz added a commit that referenced this issue Sep 8, 2016
szszszsz added a commit that referenced this issue Sep 8, 2016
Function for getting device's serial number in hex. Fixes #33
sgued pushed a commit to sgued/libnitrokey that referenced this issue Feb 14, 2022
Separate make-credential from challenge-response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants