开发者

Accessing Smartcards from a Web Site

开发者 https://www.devze.com 2023-04-07 12:46 出处:网络
A number of Countries have implemented electronic id cards, that their citizens can use to securely access online facilities like banking.

A number of Countries have implemented electronic id cards, that their citizens can use to securely access online facilities like banking.

I am interested in learning how to support these cards, but tracking down documentation on how to do this from an IIS hosted website is a real PITA: In MSDN for example the bulk of the smartcard documentation covers the end to end scenario of linking smart cards to domain logins in a corporate environment.

I am just trying to authenticate the holder of - for example, a开发者_StackOverflow社区 Spanish DNI-e card and perform an OSCP validation of the card via http://ocsp.dnie.es/

Now, its seems that, rather than explicitly detecting the smart card insertion, I need to create a login page on the server with SSL client authentication forced - but how do I configure one request to require ssl client authentication and to pick the correct client certificate?


Indeed, configure your server to require client certificate authentication. You will receive the client authenticator details in the headers.

You can force to only accept specific certificates by configuring the public root certificate of those client certificates on the server and removing all others that you are not interested in. In the authentication request going from your server to the browser, only the root certificates are listed that are trusted on your server system. The client browser will only offer client certificates that are somehow related to that root.


In an Microsoft environment you would configure your IIS to require SSL on your login page. Additionally, require SSL client authentication using a certificate.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号