ZeroPass / dmrtd

Dart library for reading Biometric Passport
Other
43 stars 19 forks source link

It dose not work with me for syrian passport #22

Closed omarnasser199789 closed 1 month ago

omarnasser199789 commented 5 months ago

I've made sure from passport number DOB and expiration date, but I still haven’t succeed in this code final rapdu = await _transceive( CommandAPDU(cla: cla, ins: ISO7816_INS.EXTERNAL_AUTHENTICATE, p1: 0x00, p2: 0x00, data: data, ne: ne) ); if(rapdu.status != StatusWord.success) { throw ICCError("External authenticate failed", rapdu.status, rapdu.data); }

Always the status != StatusWord.success
smlu commented 5 months ago

What is the value of status code? Can you read your passport with any other passport reader app?

omarnasser199789 commented 4 months ago

Yeah I can read it using ReadID app from app store can you help me to fix this issue

smlu commented 4 months ago

What is the value of rpdu.status?

Also, in the ReadID app, check what protocol was used to establish session with passport (BAC or PACE). If it says PACE then your passport might not support the BAC protocol. FYI, this library only supports the BAC proto. Implementation of PACE proto is in the works.

smlu commented 1 month ago

Closing this issue now, as no further info was provided.