passport-reader icon indicating copy to clipboard operation
passport-reader copied to clipboard

ECDH key agreement requires ECPrivateKey

Open codecandy2015 opened this issue 8 years ago • 11 comments

Hi Anton, I am having the following error when I scan the passport.

This happens in the doPACE call

01-28 09:33:47.132 8665-9619/com.pass.test W/MainActivity: org.jmrtd.PACEException: PCD side error in mapping nonce step: ECDH key agreement requires ECPrivateKey for initialisation

But when I run your app, it is working fine. Am I missing something ? is there something specific like a certificate or so which I need to invlude ?

any help would be highly appreciated Kind regards Densil

codecandy2015 avatar Jan 28 '17 08:01 codecandy2015

Check following answer:

http://stackoverflow.com/a/13871178/2548565

tananaev avatar Jan 28 '17 09:01 tananaev

I am getting the error while testing the same code as in github with a passport but the app is working. Is your APK in Google play different than the github version ?

codecandy2015 avatar Jan 28 '17 10:01 codecandy2015

The app is built using code from GitHub. There should be no difference.

tananaev avatar Jan 28 '17 10:01 tananaev

you are not using any certificates in your Android project right Anton ? and the app is started using the MainActivity and not the LoginActivity?

codecandy2015 avatar Jan 28 '17 10:01 codecandy2015

There is obviously a certificate to upload it to the Google Play, but it has nothing to do with the error. Everything else is exactly the same.

tananaev avatar Jan 28 '17 10:01 tananaev

Hi,can you provide the command API documents for me ?

mbpz avatar Feb 11 '17 03:02 mbpz

@apples398, what API?

tananaev avatar Feb 11 '17 03:02 tananaev

The command for send C-APDU and R-APDU .For read card information.

mbpz avatar Feb 11 '17 03:02 mbpz

Not sure why you are asking on this thread. I don't have any documentation.

tananaev avatar Feb 11 '17 03:02 tananaev

Ok.I get it.I should take more time to read you projection.

mbpz avatar Feb 11 '17 03:02 mbpz

Hi Anton,I finally got the app working on my phone. Was able to read a document.It was some crazy Android Studio settings with Gradle that pulled me out. Your code works fine. Thanks for sharingRegardsD

codecandy2015 avatar Feb 11 '17 11:02 codecandy2015