Coming soon: Your brand new Help Center & Community! Get a sneak-peek here

HTTP Error with httpconnection endrequest() Problem with the SSL CA cert

Hi,

 

I have URL with Rest-API to create Order in SAP. The URL has valid certificates and no problem to call ín Browser and return me SAP Order Number:

 

But If I call from crmscript, it post me:

HTTP Error: httpconnection::endrequest() Problem with the SSL CA cert (path? access rights?)

why? No matter I tried with Method h.put/post/get/open:

HTTP h; String url = "https://soapp.melchers-software.de/SAP_createOrder/createOrder.aspx"; String results = "";
url += "?port=" + port + "&projn=" + projn + "&auart=" + auart + "&aufnr=&xcomm=" + xcomm + ...
url = url.substitute(" ", "%20");
Byte[] b = h.put(url);
if (h.hasError())
{
errInfo = "HTTP Error: " + h.getErrorMessage();
ed.setMessage(errInfo);
ed.setOutputValue("SaleStatus", "1");
ed.setOutputValue("SaleEntity.Rating.Id", "7");
}
else
  results = String(b);

 

Thanks!

RE: HTTP Error with httpconnection endrequest() Problem with the SSL CA cert

Hi,

Is this onsite or online?

Looks like error indicates that it is having problems opening file containing CA, this should be located in Service install folder.

Von: Michel Krohn-Dale 15. Apr 2020

RE: HTTP Error with httpconnection endrequest() Problem with the SSL CA cert

Hi MIchel,

sorry its SO Web onsite. On that Server where SO Web installed, I have no Problem to call that https URL via Web Browser, just problem in crm script.

Von: Jianchun You 15. Apr 2020

RE: HTTP Error with httpconnection endrequest() Problem with the SSL CA cert

Hi,

Could you please tell me which version of SuperOffice ?
Also can you try to run following code:

#setLanguageLevel 3;

HTTP h;
String url = "https://httpbin.org/";

Byte[] b = h.open(url);
printLine(h.getValue("statusCode"));

if (h.hasError())
  print(h.getErrorMessage());
else
  print(String(b));
Von: Michel Krohn-Dale 15. Apr 2020

RE: HTTP Error with httpconnection endrequest() Problem with the SSL CA cert

Hi Michel,

 

from your Code i got back:

 

0 HTTPConnection::endRequest(): Problem with the SSL CA cert (path? access rights?)

I have SO Web SuperOffice NetServer 8.5 Release (Build: Release85_C-2019.11.05-02)

Von: Jianchun You 15. Apr 2020

RE: HTTP Error with httpconnection endrequest() Problem with the SSL CA cert

but i think it is not great problematic, i can still call http in crmscript to solve the requests.

Von: Jianchun You 15. Apr 2020

RE: HTTP Error with httpconnection endrequest() Problem with the SSL CA cert

Hi,

Looks like error finding or opening the CA cert file used by HTTP class, this should be located in installfolder for Service (curl-ca-bundle.crt).

Can you please verify that this exists and does not have any filerestrictions.

Von: Michel Krohn-Dale 16. Apr 2020

RE: HTTP Error with httpconnection endrequest() Problem with the SSL CA cert

Hi Michel,

 

my IT Support checked the cert files is installed in a separate Windows Certificates-Server and has no any filerestrictions, basically it works to call this Crtificates. Not checked is Proxy Server and Firewall from SO Web Server. But I can call http:// instead of https:// to get workaround. Later it is planed to migrate this SO Web Onsite to SO Cloud, from SO Cloud i should have no more Problem to call Cert.

Nevertheless Thanks for Support!

Von: Jianchun You 17. Apr 2020

RE: HTTP Error with httpconnection endrequest() Problem with the SSL CA cert

Our HTTP implementation does not use the Windows Certificate store. It only uses the file that Michel refered to. So this file must exists in the Customer Service installation, and it must be readable by the identity running your app pool for Service.

Von: Stian Andre Olsen 17. Apr 2020

RE: HTTP Error with httpconnection endrequest() Problem with the SSL CA cert

Yes, Thanks Stian and Michel!

Von: Jianchun You 17. Apr 2020

RE: HTTP Error with httpconnection endrequest() Problem with the SSL CA cert

Hi experts,

Unfortunately we still have the problem. We could already find the file ("curl-ca-bundle.crt") and adapted it accordingly. We also set the permission to "everyone". 

The file has the following path. Is it right?  -  *\wwwroot\*SO Installation*\Customer Service\curl-ca-bundle.crt

Then we did the same request as Michel described with another url. The Error message is the same either.

We couldn't find any request with the tool fiddler.

Hope you can help.

Thanks in advance! 

 

Kind regards

Leon Nonnast

Von: Leon Nonnast 12. Mai 2020