Home All Groups Group Topic Archive Search About

Logon with Digital Siganture (PKI/OCES - or what else they're called)

Author
24 Sep 2005 8:09 AM
Martin Høst Normark
Hi everyone


Has anyone got the least experience in integrating the Digital Signature
with an ASP.NET[C#] Web Application?

Here in Denmark, as I supose in many other countries, they're promoting the
digital signature. A lot of people already has one, to do their taxes, and
much more. I have to use for a business-to-business e-commerce solution,
where it's vital that the right user is being logged on, and not give his
username and password to a colleague...

Due to the Digital Signatures usage, companies are very aware of which
employees has access to tax, VAT and things like that - and I can make a
more secure web application...

Anyone with just a good idea, own experiences, good links, or something?

Thanks.

Author
20 Oct 2005 11:55 PM
Claus Konrad
Martin

Using the System.Security.Cryptography.X509Certificate class - you are able
to verify that the certificate is valid (or has not expired).
From the certificate you can obtain the Identity (property on the
certificate object) that gives you information on who owns the vertificate.
The Identity (not a windows identity, if you are talking about the danish
one as this is issued by TDC), but a generic Identity object.

Are you using the Certificate stuff inside an orginsation goverened by AD
(Active Directory), the certificate presented to you maps to a user in AD
(or can potentially map to a user in AD).
Thereby -  you've got the windowsidentity of an individual (you can cast
it).

/Claus Konrad
DK.



Show quoteHide quote
"Martin Høst Normark" <m**@jydepost.dk> wrote in message
news:433509b0$0$49020$14726298@news.sunsite.dk...
> Hi everyone
>
>
> Has anyone got the least experience in integrating the Digital Signature
> with an ASP.NET[C#] Web Application?
>
> Here in Denmark, as I supose in many other countries, they're promoting
> the
> digital signature. A lot of people already has one, to do their taxes, and
> much more. I have to use for a business-to-business e-commerce solution,
> where it's vital that the right user is being logged on, and not give his
> username and password to a colleague...
>
> Due to the Digital Signatures usage, companies are very aware of which
> employees has access to tax, VAT and things like that - and I can make a
> more secure web application...
>
> Anyone with just a good idea, own experiences, good links, or something?
>
> Thanks.
>
>
>
Are all your drivers up to date? click for free checkup

Author
21 Oct 2005 6:56 AM
Claus Konrad
To corrrect myself - you can obtain the individual to whom the certificate
was issued.

The identity object is obtained from the securitytoken you can get from the
certificate.
But - one thing with the "issed to" property - it is only a string giving
you a name; this means that if you are presented with 2 valid certificates
each carrying the name "Martin Normark", you are not able to distinguish the
two. Two persons can easely be carrying the same name (e.g. Peter Jensen is
a quite common name in DK).

In such case, you should be using the SHA1 hash of the certificate
(Certificate.GetHash()) which you trust to verifiy the request coming in, is
indeed signed with the correct certificate (.e.g carrying the correct
signature).


/Claus


Show quoteHide quote
"Martin Høst Normark" <m**@jydepost.dk> wrote in message
news:433509b0$0$49020$14726298@news.sunsite.dk...
> Hi everyone
>
>
> Has anyone got the least experience in integrating the Digital Signature
> with an ASP.NET[C#] Web Application?
>
> Here in Denmark, as I supose in many other countries, they're promoting
> the
> digital signature. A lot of people already has one, to do their taxes, and
> much more. I have to use for a business-to-business e-commerce solution,
> where it's vital that the right user is being logged on, and not give his
> username and password to a colleague...
>
> Due to the Digital Signatures usage, companies are very aware of which
> employees has access to tax, VAT and things like that - and I can make a
> more secure web application...
>
> Anyone with just a good idea, own experiences, good links, or something?
>
> Thanks.
>
>
>

Bookmark and Share