[Gnuk-users] Can't change pin on FST-01 - "general error"
Duncan Guthrie
dguthrie at posteo.net
Thu Dec 8 21:19:10 UTC 2016
Dear Gnuk-users,
I purchased a FST-01 device from Seeed Studio and built and installed the latest version of Gnuk from the gitweb.gniibe.org repository.
However, I have encountered a very serious problem: I am unable to change the PIN on my device.
I insert the device in my computer, and run "gpg --card-edit". I then type "admin" to enable more privileged commands, and select "passwd". I then select option 2, "unblock PIN", as directed by this page, https://wiki.debian.org/Smartcards/OpenPGP, under the section "initialising the smartcard". I am prompted for the admin PIN, which is left as default and this is accepted.
However, any PIN I type in to change the PIN is always rejected, with the generic error message " general error".
Selecting the other options, such as "change PIN", yields the same result, albeit this option does not ask for the admin PIN, but the regular default PIN.
Is this a bug, or am I doing something very wrong? I read through the Gnuk documentation, and used GDB to look at the device as directed in the README file, but it is difficult to understand, and gives no indication when I encounter the error.
Also of significance is that when running the tests in the " test" directory, these are all successful, however, in "tests" I get the following error:
============================= test session starts ============================== platform linux -- Python 3.4.2 -- py-1.4.25 -- pytest-2.6.3 collected 98 items test_empty_card.py E ==================================== ERRORS ==================================== _________________________ ERROR at setup of test_login _________________________ pytest.fixture functions cannot use ``yield``. Instead write and return an inner function/generator and let the consumer call and iterate over it.: @pytest.fixture(scope="session") def card(): print() print("Test start!") reader = get_ccid_device() print("Reader:", reader.get_string(1), reader.get_string(2)) card = OpenPGP_Card(reader) card.cmd_select_openpgp() yield card del card /home/user/gnuk/tests/conftest.py:9 !!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!! =========================== 1 error in 0.09 seconds ============================
However, I am not sure if this is related.
Thank you,
Duncan
--
Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/gnuk-users/attachments/20161208/7ff083ae/attachment.html>
More information about the gnuk-users
mailing list