dmrtd icon indicating copy to clipboard operation
dmrtd copied to clipboard

Rapdu 6300 error when reading PACE-enabled Greek passport

Open Parzivalxx opened this issue 8 months ago • 1 comments

Hi, I am getting the following error when reading PACE-enabled Greek passport:

PACE <ECDH> key establishment failed: PACE <ECDH> (4); Failed: ICC Error: General authentication template (step 4) failed sw=6300

I have narrowed it down to this function: https://github.com/ZeroPass/dmrtd/blob/8ced7600fb9fd84f0824bfaddc2fcc7bff655a7f/lib/src/proto/iso7816/icc.dart#L118 it seems the rapdu status is 6300 when it needs to be 9000 when reading in PACE mode.

This error only happens for the Greek passport. It succeeds when reading PACE-enabled Singapore passport. I have checked the input fields such as the mrtdNumber, date of birth and date of expiry and they are correct.

Parzivalxx avatar Jul 01 '24 06:07 Parzivalxx