{"action":"closed","issue":{"url":"https://api.github.com/repos/OpenSC/libp11/issues/118","repository_url":"https://api.github.com/repos/OpenSC/libp11","labels_url":"https://api.github.com/repos/OpenSC/libp11/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/OpenSC/libp11/issues/118/comments","events_url":"https://api.github.com/repos/OpenSC/libp11/issues/118/events","html_url":"https://github.com/OpenSC/libp11/issues/118","id":181040950,"number":118,"title":"Current github master fails to load keys","user":{"login":"mouse07410","id":5923577,"avatar_url":"https://avatars.githubusercontent.com/u/5923577?v=3","gravatar_id":"","url":"https://api.github.com/users/mouse07410","html_url":"https://github.com/mouse07410","followers_url":"https://api.github.com/users/mouse07410/followers","following_url":"https://api.github.com/users/mouse07410/following{/other_user}","gists_url":"https://api.github.com/users/mouse07410/gists{/gist_id}","starred_url":"https://api.github.com/users/mouse07410/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mouse07410/subscriptions","organizations_url":"https://api.github.com/users/mouse07410/orgs","repos_url":"https://api.github.com/users/mouse07410/repos","events_url":"https://api.github.com/users/mouse07410/events{/privacy}","received_events_url":"https://api.github.com/users/mouse07410/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-05T00:50:20Z","updated_at":"2016-10-05T17:44:17Z","closed_at":"2016-10-05T17:44:17Z","body":"Downloaded and configured defaults, see config.log: \r\n[config.log.txt](https://github.com/OpenSC/libp11/files/509782/config.log.txt)\r\n\r\nBuilds fine, and `make check` shows all the 5 tests PASSED.\r\n\r\nAttempts to use it however fails with \"load_private_key:not initialized\":\r\n```\r\n$ openssl dgst -engine pkcs11 -keyform engine -sign \"pkcs11:object=SIGN%20key;object-type=private\" -sha384 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:-1 -out t256.dat.sig t256.dat\r\nengine \"pkcs11\" set.\r\ncannot load key file from engine\r\n140735271227472:error:26096075:engine routines:ENGINE_load_private_key:not initialised:eng_pkey.c:112:\r\nunable to load key file\r\n$ \r\n```\r\n\r\nNotice no prompt for the PIN. I tried to backtrack to the older master - and then I was prompted for the PIN, but still got \"unable to load private key\".\r\n\r\nWhat changed was the newer release of `p11-kit`. With the older master, the above works if I prefix the command with `PKCS11_MODULE_PATH=/Library/OpenSC/lib/opensc-pkcs11.so`. With the current master it does not help:\r\n```\r\n$ PKCS11_MODULE_PATH=/Library/OpenSC/lib/opensc-pkcs11.dylib openssl dgst -engine pkcs11 -keyform engine -sign \"pkcs11:object=SIGN%20key;object-type=private\" -sha384 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:-1 -out t256.dat.sig t256.dat\r\nengine \"pkcs11\" set.\r\ncannot load key file from engine\r\n140735271227472:error:26096075:engine routines:ENGINE_load_private_key:not initialised:eng_pkey.c:112:\r\nunable to load key file\r\n$ ll /Library/OpenSC/lib/opensc-pkcs11.dylib\r\nlrwxr-xr-x  1 root  wheel  16 Oct 17  2015 /Library/OpenSC/lib/opensc-pkcs11.dylib@ -> opensc-pkcs11.so\r\n$ ll /Library/OpenSC/lib/opensc-pkcs11.so\r\n-rwxr-xr-x  1 root  wheel  181796 Sep 23 17:31 /Library/OpenSC/lib/opensc-pkcs11.so*\r\n$\r\n```"}}
{"actor":{"display_login":"dwmw2"}}