open-eid / chrome-token-signing

DEPRECATED Chrome and Firefox extension for signing with your eID on the web
https://github.com/open-eid/chrome-token-signing/wiki
GNU Lesser General Public License v2.1
206 stars 75 forks source link

Driver error on Ubuntu 18.10 #128

Closed thgramos closed 5 years ago

thgramos commented 5 years ago

I installed the latest open-eid version using the script install-open-eid.sh from https://installer.id.ee/media/ubuntu/. When I tried to get the certificates I received driver_error message. Enabling logging I got the this:

atrList() [PKCS11Path.cpp:69] found reader: AKS ifdh [Main Interface] 00 00 atrList() [PKCS11Path.cpp:82] Set ATR = 3BD518008131FE7D8073C82110F4 for reader AKS ifdh [Main Interface] 00 00 [2840] PKCS11CardManager() [PKCS11CardManager.h:124] Function List not loaded /usr/local/lib/libeTPkcs11.dylib: /usr/local/lib/libeTPkcs11.dylib: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente 2019-04-11 17:25:44 [2840] write() [chrome-host.cpp:132] Response(66) { "nonce": "dh0asknzlvfj9gvm", "result": "driver_error" }

As far as I know the dylib extension is only for Mac OS. Investigating further I found in PKCS11Path.cpp at line 127 the constant definition:

static const std::string eTokenPath("/usr/local/lib/libeTPkcs11.dylib");

I think the right path would be /usr/lib/libeTPkcs11.so. At least on my machine I created a symbolic link from /usr/local/lib/libeTPkcs11.dylib to /usr/lib/libeTPkcs11.so and solved the problem.

thgramos commented 5 years ago

The path is wrong, at least for Ubuntu 18.10, it would be /usr/lib/ instead /usr/local/lib/.