List client certificates
- From: moises.cid@xxxxxxxxx
- Date: 26 Jun 2006 00:44:01 -0700
Hi,
I'm developing a Web application with VStudio 2005 + .net 2.0 + IIS 6.0
In the Web application I've to digitally sign a pdf document with a
user certificate. In the page where I've to sign I list the user
certificates with this code:
------------------------------------------------------------------------------------
X509Store store = new X509Store(StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly);
X509Certificate2Collection certCollection = store.Certificates;
if (certCollection.Count < 1) {
lblMsg.Text = "No hay certificados 'Personales' Instalados.";
return; }
foreach (X509Certificate2 c in certCollection)
DDListCertifi.Items.Add(c.Subject);
------------------------------------------------------------------------------------
This code works fine in my Visual Studio local web server. I can see
the user certificates in the dropdownlist, but when I export the code
to other server, it doesn't works. I can't see the certificates in the
dropdown,
¿can anybody help me?
Thanks in advance. Moisés
.
- Follow-Ups:
- Re: List client certificates
- From: Joe Kaplan \(MVP - ADSI\)
- Re: List client certificates
- Prev by Date: Re: Problem in Accessing Active Directory from ASP.net
- Next by Date: Re: login to Website using a SmartCard
- Previous by thread: Re: FormsAuthentication Access Rules Event
- Next by thread: Re: List client certificates
- Index(es):