1

In C# I can do this by using

public static CspKeyContainerInfo GetKeyConatinerInformation(X509Certificate2 certificate)
{
   if (certificate == null)
      throw new ArgumentNullException("certificate");

   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

cpx
  • 17,009
  • 20
  • 87
  • 142
tandaica0612
  • 369
  • 10
  • 23

1 Answers1

1

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.

Community
  • 1
  • 1
Raj
  • 1,113
  • 1
  • 17
  • 34