0

I have a file. This file is digitally signed with our companys certificate. This certificate, has a countersignature (for example by Microsoft ). However this certificate also has a Certification Path, where on the top there is a root certificate ( like Symantec ), under that is another certificate ( like Symantec code signing ), and under that is our companys certificate.

I found This link, and rewrote it, so i can query everything i need. Well almost everything.
I couldn't figure out, how can i query the information about the root certificate? It's name, or something? Obviousley I am missing something, but i don't know what.

Could someone please help me?

Thanks in advance!

kampi
  • 2,362
  • 12
  • 52
  • 91

1 Answers1

0

There are cryptoAPI functions to establish certificate trust.

I recommend that you go through the following links to understand the basics.

Refer to

Certificate Chain Verification Functions

Performing X.509 Certificate Verification with CryptoAPI

Raj
  • 1,113
  • 1
  • 17
  • 34
  • I tried to use `CertGetCertificateChain`, but after i called it, i'm stuck. How do i get the information, from the root certificate? – kampi Jan 07 '15 at 11:09
  • What is your end goal? You can open your ROOT store and can identify your root certificate based on some parameter from the certificate such as subject name, serial no etc – Raj Jan 07 '15 at 13:58
  • Basicly i want to make sure, that a file is signed with my specific certificate. To do that, i wanted to check the certification path(because AFAIK it can't be faked) and check what the root certificate is(and of course check other things too). – kampi Jan 07 '15 at 14:12