OLE Msxml2.ServerXMLHTTP.6.0 and Certificates (OpenInsight 32-bit)
At 05 JAN 2012 03:15:03PM Bruce Cameron wrote:
Hi all,
Happy New year!
One of the companies that we send payload data to via the above ServerXML object has renewed and created a new for there web service.
If we install the new certificate we now have 2 certificates for the same organization and the object doesn't know which one to use so we get an error back from the web service server.
It occurred to me that I never realized how the object knew what certificate to pick up anyway so my question is … is there a way to programmatically tell/set the certificate for the session? Also, if so, what do you use to identify the correct certificate? Serial Number?
I've tried a set option to ignore any certificate errors (just testing) but no luck.
x = OleCallMethod(OleObj,"setOption",3,"")
Should I be using a Create Object instead? Any help is appreciated.
At 05 JAN 2012 03:25PM Bruce Cameron wrote:
Sorry, I figured it out on my own. Answer is to use the setOption method, 3 and designate the certificate name.
x = OleCAllMethod(OOleObj,"setOption",3,"MYCERTNAME")
At 06 JAN 2012 09:49AM Bob Carten wrote:
Thanks Bruce, this is good to know.