Native .Net client of the Belgium eID card, directly uses the WinSCard library of Windows. It allows to read the files on the Belgium eID card.
Install the Egelke.Eid.Client NuGet package:
PM> Install-Package Egelke.Eid.Client
- Compatible reader
- Fedict minidriver (part of eID Middleware)
- Resent windows (tested on Windows 11)
using (Readers readers = new Readers(ReaderScope.User))
{
EidCard eid = (EidCard)readers.ListCards().Where(c => c is EidCard).FirstOrDefault();
using (eid)
{
eid.Open();
X509Certificate2 auth = eid.AuthCert;
Model.Identity identity = eid.Identity;
}
}
GNU Lesser General Public License