-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mutual authentication failed #7
Comments
I would recommend to ask in JMRTD project. That's the library I'm using in this project to communicate with the passport chip. |
Hello, |
I switched to this app. It works flawless and even has OCR for the passport ID. |
Thanks for quick response, |
I sadly can't help you with that as I only used the app to scan my passport. |
No worries, |
i have this same issue @shwetankb11 any solution yet? |
Are u making your own application? |
@shwetankb11 yeah i m making an android application that scans passport, i can read Nigerian passport(no BAC) perfectly but when i scan a British/Fininsh passport(BAC protected) i get the error you mentioned. |
Go to playstore and search for Bondi passport, in the more section you will find the github project link, |
thanks would check it out. |
I usually get this error when the information I entered in the app (passport number, birth date and expiration date) are incorrect. |
Hello, i finally solved this problem on my app. I hope that will help you all, too. Once you set a timeout to your NfcA or NfcB depends on which one you use, it works pretty well if the informations about the card are correct. This was the only change that I have made. isoDep.setTimeout(5000) |
@cihatkapusuz where did you set the isoDep timeout exactly in the code ? |
I am not able to post a snapshot of my code but I can say on the top of everything after defining my isoDep variable. |
I think the likely location is within
|
Yes, something like this would help. |
Hi, Any update on this issue, Am trying to read a BRP card by using "Read ID card" button in the app. When I tap my ID card, I get this same error "Mutual authentication failed: expected length: 40 + 2, actual length: 2 (SW = 0x6985: CONDITIONS NOT SATI...". |
Any solution for this problem? I think that is only works on card ID, but on passport (some) require extras steps. |
Hi, I managed to solve this by calling passportService.sendSelectApplet(false); just before calling |
@shwetankb11 Thanks, it works |
Work for me |
Anyone solved the issue yet im trying to make it work on an emirates id and its giving the same error |
To add my experience, with our national ID: Everything works fine on SM A605FN, Android 10 (API 29) I checked order and content of APDU-s, and there are no any indication that APDU-s are wrong. The order is always the same: So, on two of tested devices, everything is working nice, while on older Android 8.1, I am getting SW = 0x6985: CONDITIONS NOT SATISFIED. The same ID card is used in all tests. I then tried with different isoDep timeout values (default was 2000, and I tested with 3000, 4000, 5000 and 1000). In all tests, only Android 8.1 device returned error all the times, while other two devices works fine whatever timeout is set. As one and only one ID was used, I would say that this is not the issue caused by wrong application (wrong order of APDUs, or whatever). Could be possible that Android NFC driver on my Android 8.1 device is cause of this issue (I still suspect to some timeout issues). Any idea from the community? |
When I'm trying to read my passport it says "Mutual authentication failed: expected length: 40 + 2, actual length: 2 (SW = 0x6985: CONDITIONS NOT SATI...".
The text was updated successfully, but these errors were encountered: