Dear Gnuk-users,<br>
<br>
I purchased a FST-01 device from Seeed Studio and built and installed the latest version of Gnuk from the <a href="http://gitweb.gniibe.org">gitweb.gniibe.org</a> repository.<br>
However, I have encountered a very serious problem: I am unable to change the PIN on my device.<br>
<br>
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, <a href="https://wiki.debian.org/Smartcards/OpenPGP">https://wiki.debian.org/Smartcards/OpenPGP</a>, under the section "initialising the smartcard". I am prompted for the admin PIN, which is left as default and this is accepted.<br>
<br>
However, any PIN I type in to change the PIN is always rejected, with the generic error message " general error".<br>
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.<br>
<br>
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. <br>
<br>
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: <br>
<br>
============================= test session starts ============================== platform linux -- Python 3.4.2 -- py-1.4.25 -- pytest-2.6.3 collected 98 items test_empty_<a href="http://card.py">card.py</a> 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/<a href="conftest.py:9">conftest.py:9</a> !!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!! =========================== 1 error in 0.09 seconds
============================ <br>
<br>
However, I am not sure if this is related.<br>
<br>
Thank you,<br>
<br>
Duncan<br>
-- <br>
Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté.