views:

93

answers:

0

I have a VBA application that returns an HTTPS file but it stops to ask for the Certificate.

C# has this code:

Dim wr As HttpWebRequest = CType(WebRequest.Create("https://www.xxx.net?RunDate=2009-09-29"), HttpWebRequest)
wr.ClientCertificates.Add(New System.Security.Cryptography.X509Certificates.X509Certificate2(myCert, myCertPW))

Is there a function call that exists in VBA that has the above X509Certificate2 functionality? Thank you. gerard