Belgian eID-card

User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Belgian eID-card

Post by driessen »

Hello,

Here in Belgium we all have a electronic ID-card which is used in many applications.

Does anyone know how we can read this eID in a cardreader?

Thanks a lot in advance.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: Belgian eID-card

Post by Otto »

Hello Michel,
have you found a solution.
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Belgian eID-card

Post by driessen »

Unfortunately not, Otto.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
rhlawek
Posts: 165
Joined: Sun Jul 22, 2012 7:01 pm

Re: Belgian eID-card

Post by rhlawek »

AntoninoP
Posts: 347
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy
Contact:

Re: Belgian eID-card

Post by AntoninoP »

In my infinity curiosity, I saw the API for Belgian eID-card. :oops:
I arrived at http://eid.belgium.be/en/developing_eid ... pment_kit/
then at https://code.google.com/p/eid-mw/wiki/SDK40
so, It is enough download the software from http://eid.belgium.be/nl/je_eid_gebruik ... stalleren/ and the SDK from http://eid-mw.googlecode.com/files/sdk40_1306.zip.

starting from them, I created this test: http://aperricone.altervista.org/temp/beid.zip

all file except: be_api.c, test.prg, build.bat and test.exe are copied from the SDK.
The interesting one is be_api.c, it is only started, finish its is a easy but boring work.
I don't have way to test it, but I think it is a good starting point.

Hoping that I helped,
Antnino Perricone
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: Belgian eID-card

Post by Jack »

Hello,
What is the right instruction in other to read the contents of EID Card : Name, Adress,Bitrth Date ?

Thanks
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Belgian eID-card

Post by Jack »

Hello,
Is there something new about this ?
How to extract FirstName,LastName,BirthDate etc
Thanks for your help .
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: Belgian eID-card

Post by Marc Vanzegbroeck »

Hi,

There is an SDK for reading the information on the eID.
http://eid.belgium.be/nl/eid-toepassing ... opment_kit
https://github.com/Fedict/eid-mw/wiki/S ... troduction
Here is a VBA wrapper:
https://github.com/jdt/EID.Wrapper
I did't try it yet.
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: Belgian eID-card

Post by Jack »

How to translate this in Fivewin/Harbour language ?
Thanks for your help .
AntoninoP
Posts: 347
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy
Contact:

Re: Belgian eID-card

Post by AntoninoP »

no one tried my code?
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: Belgian eID-card

Post by Marc Vanzegbroeck »

AntoninoP wrote:no one tried my code?
Antonino,


When I run it with a cardreader, I get this error:

Code: Select all

Init:         0
Error BASE/1111  Argument error: LEN
Called from LEN(0)
Called from MAIN(6)
I will try to debug it if I have some time...
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
AntoninoP
Posts: 347
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy
Contact:

Re: Belgian eID-card

Post by AntoninoP »

It does not found the file beidpkcs11.dll or beid35pkcs11D.dll (depends if is compiled in C debug or not), maybe is better to change the line 11 of be_api.c from

Code: Select all

CK_RV retVal = CKR_OK;
to

Code: Select all

CK_RV retVal = CKR_GENERAL_ERROR;
so it does not return 0 (OK) in case of fail.
User avatar
Marc Venken
Posts: 727
Joined: Tue Jun 14, 2016 7:51 am

Re: Belgian eID-card

Post by Marc Venken »

Has anyone been able to read the ID card yet ?

Maybe even with a other software executed from FW ?
Marc Venken
Using: FWH 20.08 with Harbour
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: Belgian eID-card

Post by Jack »

Hello,
Did someone found samples of FW code for this ?
Thanks
User avatar
Marc Venken
Posts: 727
Joined: Tue Jun 14, 2016 7:51 am

Re: Belgian eID-card

Post by Marc Venken »

Not from my side.
Marc Venken
Using: FWH 20.08 with Harbour
Post Reply