Re: List client certificates



I'm sorry, but I don't really know how to tell you to proceed as I'm not
sure how I would accomplish such a thing if I were to do it. In order to
sign a file, you need access to a user's client certificates and the private
key, so I'm guessing you would need an activex control (or potentially a
..NET user control with proper CAS permissions) to implement this.

Maybe someone else will have some other ideas.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
<moises.cid@xxxxxxxxx> wrote in message
news:1151343107.057372.104170@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Thanks Joe for your information.
Could you tell where found information in order to do that.

Thanks in advance.



Joe Kaplan (MVP - ADSI) ha escrito:

You need some ActiveX or script code that runs on the client to read a
user's client certificates. This code won't work running on the server.
:)

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
<moises.cid@xxxxxxxxx> wrote in message
news:1151307841.572305.139170@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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


.



Relevant Pages

  • Re: Sending signed and encrypted email.
    ... The user may have 1 or more certificates, ... via an AD lookup, you would want their encryption certificate, not their ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... I am new to framework 2.0 so unsure about the capabilities of the ...
    (microsoft.public.dotnet.security)
  • Re: Signing LDAP Without Certificate Services
    ... You don't need to install your own CA though. ... You can just buy SSL certificates from a commercial instead. ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.windows.server.active_directory)
  • Re: Expired Certificates
    ... They can go and request a new user certificate through Web Enrollment or ... I would not delete their old certificates as they may need them ... > Ok, newbie question here. ...
    (microsoft.public.windows.server.security)
  • Re: Expired Certificates
    ... expired and a current certficate in your machine store there is no confusion ... when there are multiple certificates. ... >> user certificate. ... My question is, once the certificate expires, do they ...
    (microsoft.public.windows.server.security)
  • Re: List client certificates
    ... Joe Kaplan ha escrito: ... user's client certificates. ... Joe Kaplan-MS MVP Directory Services Programming ... user certificate. ...
    (microsoft.public.dotnet.framework.aspnet.security)