-->

How to query the root certificate?

2019-09-19 00:18发布

问题:

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!

回答1:

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