开发者

How to get information about key container through certificate public key in CryptoAPI?

In C# I can do this by using

public static CspKeyContainerInfo GetKeyConatinerInformation(X509Certificate2 certificate)
{
   if (certificate == null)
      throw new ArgumentNullException("c开发者_高级运维ertificate");

   ICspAsymmetricAlgorithm key = certificate.PublicKey.Key as ICspAsymmetricAlgorithm;
      if (key == null)
         throw new InvalidOperationException("Unknown key type");

   return key.CspKeyContainerInfo;
}

I want to know how can i get this by using C++ and lib CryptoAPI


Here is a program written by Mounir IDRASSI. This will provide you with the information you are looking for.

Also look for the related answer here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜