I created the following C# code:
X509Store x509Store = null;
x509Store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
x509Store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
Debug.WriteLine("Certificates!");
foreach (X509Certificate2 certificate in x509Store.Certificates)
{
Debug.WriteLine(certificate.ToString());
}
This is just a proof of concept. I have to do the same thing in ms-access-vba.
I could create a C#-assembly with a com-class to call the code out of vba but this is a lot of trouble because the registration of the com-object needs admin rights. So I want to avoid this.
Is there a way to access the certificates directly out of vba (=without using C# at all)?