Open pavlovdog opened 6 years ago
Running npm test pcsc results in error. Error happening in the EstEID.authenticate method call:
npm test pcsc
EstEID.authenticate
pavlovdog@local:~/esteid.js$ npm test pcsc > esteid@0.0.5 test /home/pavlovdog/esteid.js > node test-node.js "pcsc" EstEID v0.0.5 ▄████████ ▄████████ ███ ▄████████ ▄█ ████████▄ ███ ███ ███ ███ ▀█████████▄ ███ ███ ███ ███ ▀███ ███ █▀ ███ █▀ ▀███▀▀██ ███ █▀ ███▌ ███ ███ ▄███▄▄▄ ███ ███ ▀ ▄███▄▄▄ ███▌ ███ ███ ▀▀███▀▀▀ ▀███████████ ███ ▀▀███▀▀▀ ███▌ ███ ███ ███ █▄ ███ ███ ███ █▄ ███ ███ ███ ███ ███ ▄█ ███ ███ ███ ███ ███ ███ ▄███ ██████████ ▄████████▀ ▄████▀ ██████████ █▀ ████████▀ EstEID for JS, version 0.0.5 by github.com/@martinpljak Please connect a card reader and insert a card READER ACS ACR 38U-CCID 00 00 CARD ACS ACR 38U-CCID 00 00 Card in ACS ACR 38U-CCID 00 00 matches (3bfe1800008031fe45803180664090a4162a00830f9000ef)! Personal data: { "SURNAME": "**********", "GIVEN_NAMES1": "**********", "GIVEN_NAMES2": "", "SEX": "M", "CITIZENSHIP": "**********", "DATE_OF_BIRTH": "**********", "PERSONAL_ID": "**********", "DOCUMENT_NR": "**********", "EXPIRY_DATE": "**********", "PLACE_OF_BIRTH": "**********", "ISSUING_DATE": "**********", "PERMIT_TYPE": "", "REMARK1": "**********", "REMARK2": "", "REMARK3": "", "REMARK4": "" } PIN retry counters: PIN1=3 PIN2=3 PUK=3 Do PIN verification tests [y/n]: n Certificate: **********,**********,********** digital signature Certificate: **********,**********,********** authentication Please enter PIN1: **** Authentication failed: Error: APDU SW check failed, SW 0x6700 not in 0x9000 at /home/pavlovdog/esteid.js/apdu.js:59:13 at <anonymous> Some of the tests failed Error: APDU SW check failed, SW 0x6700 not in 0x9000 at /home/pavlovdog/esteid.js/apdu.js:59:13 at <anonymous> Application failed Error: APDU SW check failed, SW 0x6700 not in 0x9000 at /home/pavlovdog/esteid.js/apdu.js:59:13 at <anonymous> npm ERR! Test failed. See above for more details.
I've replaced all sensetive information with **********. My specs:
**********
$ uname -a Linux local 4.15.0-24-generic #26~16.04.1-Ubuntu SMP Fri Jun 15 14:35:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux $ node -v v8.11.3 $ npm -v 5.6.0
Tested this issue on Mac OS - same error :(
uname -a Darwin Kernel Version 17.6.0: Tue May 8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64 node -v v8.11.3 npm -v 5.6.0
Running
npm test pcsc
results in error. Error happening in theEstEID.authenticate
method call:I've replaced all sensetive information with
**********
. My specs: