Home All Groups Group Topic Archive Search About

Accessing certificate services with .net

Author
5 Sep 2006 2:37 PM
Thorsten Kallweit
Hello all,

I need to retrieve a certificate from a Microsoft Certificate Services
PKI by its certificate ID and I don't know where to start.
background:
I have signed records in a database, each record holds the id of the
certificate it has been signed with. I don't want to copy the
certificates into the database because PKI holds them all.
For the verification of a record signature I need to find the
appropriate certificate.
Has anyone a helpful link?

tia,
Thorsten

Author
5 Sep 2006 2:50 PM
Dominick Baier
Which type of CA do you have "stand alone" or "enterprise" ?

Enterprise stores the certs in Active Directory. I guess you can access them
somehow using LDAP. Joe??

Stand alone CAs don't store the certs..

---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com

Show quoteHide quote
> Hello all,
>
> I need to retrieve a certificate from a Microsoft Certificate Services
> PKI by its certificate ID and I don't know where to start.
> background:
> I have signed records in a database, each record holds the id of the
> certificate it has been signed with. I don't want to copy the
> certificates into the database because PKI holds them all.
> For the verification of a record signature I need to find the
> appropriate certificate.
> Has anyone a helpful link?
> tia,
> Thorsten
Author
5 Sep 2006 3:02 PM
Joe Kaplan
Unfortunately I don't know anything about LDAP access to MS CAs.  The CA we
use internally is non-MS (although it does have an LDAP access model).  From
what I've seen with certs stored in AD (associated with a user), they are
typically stored as binary blobs, so you can't really search them
effectively using LDAP.  You can only retrieve them.

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
--
Show quoteHide quote
"Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> wrote in
message news:4580be63134278c89f22854f2e8f@news.microsoft.com...
> Which type of CA do you have "stand alone" or "enterprise" ?
>
> Enterprise stores the certs in Active Directory. I guess you can access
> them somehow using LDAP. Joe??
>
> Stand alone CAs don't store the certs..
>
> ---
> Dominick Baier, DevelopMentor
> http://www.leastprivilege.com
>
>> Hello all,
>>
>> I need to retrieve a certificate from a Microsoft Certificate Services
>> PKI by its certificate ID and I don't know where to start.
>> background:
>> I have signed records in a database, each record holds the id of the
>> certificate it has been signed with. I don't want to copy the
>> certificates into the database because PKI holds them all.
>> For the verification of a record signature I need to find the
>> appropriate certificate.
>> Has anyone a helpful link?
>> tia,
>> Thorsten
>
>
Author
5 Sep 2006 4:04 PM
Thorsten Kallweit
We use an enterprise CA embedded in our AD.
I think it will be much faster and more comfortable to copy the
certificates into my database than searching one using LDAP.
Once loaded from the database verification is easily done by CAPICOM.
Thanks for your answers!
Thorsten


Joe Kaplan schrieb:
Show quoteHide quote
> Unfortunately I don't know anything about LDAP access to MS CAs.  The CA we
> use internally is non-MS (although it does have an LDAP access model).  From
> what I've seen with certs stored in AD (associated with a user), they are
> typically stored as binary blobs, so you can't really search them
> effectively using LDAP.  You can only retrieve them.
>
> Joe K.
>