Error https request from LS agent

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!

Subject: Error https request from LS agent

Hi Frank,

Did you find any solution to transfer Lotus Notes data thru XML? I am having the same issue that when I am running the agent manully its working fine but when i changed to scheduled agent i am getting below error

‘Update : Error #213 msxml3.dll: The certificate authority is invalid or incorrect Line #90 in sub/function: “UPDATEREQUESTINSP” Called from sub/function: “INITIALIZE” Error #19 No RESUME Line #27 in sub/function: “INITIALIZE”’

Please let me know how do you fix this issue.

Subject: Error https request from LS agent

I had an error like that before “msxml3.dll” when calling a servlet to process some XML…

The fix was to set “Microsoft Internet Explorer” in the Internet Browser tab on your Location Document.

Not sure if this is the fix for you, but it worked for us…

Just an idea…

If not, possibly this?:

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/31e337e98197f65385256f1e001a96df?OpenDocument

HTH,

Dan