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

Nitrokey 3: pivtool change-puk: Segmentation fault #46

Open
matthiasbock opened this issue Jan 11, 2024 · 3 comments
Open

Nitrokey 3: pivtool change-puk: Segmentation fault #46

matthiasbock opened this issue Jan 11, 2024 · 3 comments

Comments

@matthiasbock
Copy link

Hi,

as described in issue #45, I am trying to set-up a Nitrokey 3.
This issue looks different than the aforementioned one:

Changing the PIN seems to work...

$ ./pivy-tool change-pin
Enter current PIV PIN (2B671D88): 
Enter new PIV PIN (2B671D88): 
Confirm new PIV PIN (2B671D88): 

...but changing the PUK results in a segmentation fault:

$ ./pivy-tool change-puk
Enter current PUK (2B671D88): 
Enter new PUK (2B671D88): 
pivy-tool: PIN must be 4-8 characters
Enter current PUK (2B671D88): 
Enter new PUK (2B671D88): 
Confirm new PUK (2B671D88): 
Segmentation fault

I tried different numbers of characters, alphanumeric charset, only digits, but the problem persists.
Any suggestions?

Cheers, Matthias

@jclulow
Copy link

jclulow commented Jan 11, 2024

What OS are you running this on? Do you get a core file from the segmentation fault?

@matthiasbock
Copy link
Author

I use Debian Linux (bookworm), Linux kernel 5.10.0-19, amd64.

The error message above is the only output I get. How can I create a core file?

@jclulow
Copy link

jclulow commented Jan 11, 2024

You may not actually need to, you could try running it under the debugger? Maybe something like:

$ gdb ./pivy-tool
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
...

(gdb) run change-puk
... [presumably it will crash here]

(gdb) backtrace

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

2 participants