How to query the root certificate?

懵懂的女人 提交于 2019-12-12 03:17:00

问题


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



来源:https://stackoverflow.com/questions/27802413/how-to-query-the-root-certificate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!