Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP COM and Certificates
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
VFP COM and Certificates
Miscellaneous
Thread ID:
01678438
Message ID:
01678438
Views:
64
Hi everyone,

I was wondering if anyone could help me with a problem. We are running a VFP 9 COM and I have written code to integrate with a company that uses a certificate. I've installed the certificate on the server that the COM is on and am able to run it fine if I'm running through a VFP command window and calling the COM method code on that server. Here is an example of my code:
oHTTP = CREATEOBJECT("MSXML2.ServerXMLHTTP.6.0") 
oHTTP.setTimeouts(60000,300000,60000,180000)
oHTTP.setOption(3) = lcCertificate && Set to use Certificate
oHTTP.OPEN("POST",SERVERURL)
oHTTP.setRequestHeader("Content-Type","text/xml")
oHTTP.SEND(lcXML)
lcResponse = oHTTP.responseBody
lnStatusCode = oHTTP.status
lcStatusText = ALLTRIM(oHTTP.statustext)
lcData = lcResponse
This works fine, but the problem is that when I attempt to call this COM method via ASP using HTTP, it fails saying the certificate is required.

Error Number: 1429
Line Contents:
Message: OLE IDispatch exception code 0 from
msxml6.dll: A certificate is required to complete
client authentication

Has anyone had any experience with this?

Thanks in advance for any help you can provide!
Kevin Scott
kehvn@carolina.rr.com


Hey! It's not my fault. It's some General named Protection!
Reply
Map
View

Click here to load this message in the networking platform