Hi Bruno,
On 09-05-16 12:43, Bruno Thieme wrote:
> Hi everyone,
>
> I'm facing a problem.
> I need to read general info from eid card (name, address,...) from an
> intranet application written in PHP and I don't want to give access to
> the internet.
That's not possible as is. PHP is a server-side application, which (for
obvious reasons) cannot directly access the eID card. To be able to do
so, you need to have an application on the client side with the ability
to read the card.
There are currently two options for this:
- Install the eID applet and its server-side infrastructure. The
advantage of this is that it will verify that the data on the card is
correctly signed by the certificate of the national register (i.e., that
the data has not been forged or tampered with), so it can be used if the
correctness of the data is of paramount importance. The downsides of
this method are that setting up and maintaining the server side of the
eID applet requires a lot of work, and that it still relies on
client-side java applets, which is an issue with modern browsers.
- If the possibility of incorrect data is not a major issue, then you
can install the eID viewer on the client side, and initiate a
drag-and-drop operation (from the viewer's photo) onto a web page. There
is a proof-of-concept implementation of this available in the eID viewer
code repository at
<
https://github.com/Fedict/eid-viewer/tree/master/xml>. The advantage of
this method is that it is very easy to use; the disadvantage is that it
does not provide a proof of identity, and that the data retrieved in
this manner can be trivially forged or tampered with by the end user.
[...]
> One more point, I don't want my clients to enter the PIN code.
Reading identity information never requires the user to enter their PIN
code.
--
Wouter Verhelst