We are trying to read XML data via an LS agent from an https URL. If I run the agent manually it works fine.
I think when I start the agent manually he is using the ssl certificate that was installed in my browser earlier, when I first opened the SSL URL in the browser.
So when the agent connects he knows the certificate is valid and gets the XML data.
If I schedule the same agent on a domino server I get one of the following errors.
Fehler 213 in Zeile 28 → msxml3.dll: A security problem occurred
Fehler 213 in Zeile 23 → msxml3.dll: The certificate authority is invalid or incorrect
The certificate seems to be valid. The error is raised at the point the agent sends a request to the SSL URL → Call varHTTPObject.send()
So I exported the certificate for the SSL URL from my local browser and we installed this certificate in the domino server, because we thought the domino server accepts the certificate provided by the SSL URL. Additionally we created a cross certificate with the root certificate, but we still get the errors.
As follows the code, as you see I experimented a little bit with different http header params.
' connect to eEPR and request xml document for sire id
Set varHTTPObject = CreateObject("Microsoft.XMLHTTP")
'Set varHTTPObject = CreateObject("MSXML2.ServerXMLHTTP")
'Const SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056
'varHTTPObject.setOption 2, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS
sURL = eEPRBaseUrl + docRequest.GetFirstItem( "ERMS_SIRE" ).Values(0)
varHTTPObject.Open "Get", sURL, False, eEPRuserName, eEPRuserPsw ' call url without login
Call varHTTPObject.setRequestHeader("Cache-Control", "no-cache")
Call varHTTPObject.setRequestHeader("Pragma", "no-cache")
'Call varHTTPObject.setRequestHeader("Expires", "Sat, 1 Jan 2005 01:00:00 GMT")
'Call varHTTPObject.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2005 01:00:00 GMT")
Call varHTTPObject.send()
Has anybody an idee how to solve this problem??
Thanks in advance!