on 2018 Aug 23 5:10 PM
Hi,
I need to call the B1 Service layer from an XS application.
As I understand it this means:
1. Download the certificate for the Service Layer.
2. Set up a Trust Store for the App.
3. Import the Certificate into the Trust Store.
Currently I am using a self-signed certificate.
Are these the right steps?
What is the easiest or most standard way to do step 1 - download certificate.
Will a self signed certificate work or do I need to get an valid signed certificate?
Thanks for any help.
Regards,
Mel
Request clarification before answering.
Hi Mel,
You can download the certificate from your browser if you go to https://HanaAddress:50000 and press the certificate box in your URL bar.
Also you can download it from your SLES system by path: <ServiceLayer installation folder>/conf/server.crt.
By default it's /usr/sap/SAPBusinessOne/ServiceLayer/conf/server.crt
I guess it's up to customer what certificate to use. It's not free to issue a valid certificate and if you are going to consume ServiceLayer from XS that will be internal traffic, so I think it won't be a security issue. If you want to call it from front end JS it's another case, then you need to setup CORS and probably provide a normal certificate.
BTW you also can call ServiceLayer by HTTP. Example of a destination file using HTTP (in this case you don't need to setup the truststore):
host = "<YourHanaIP>";
port = 50001;
description = "ServiceLayer UNTRUSTED!!!!";
useSSL = false;
pathPrefix = "/b1s/v1/";
authType = none;
useProxy = false;
proxyHost = "";
proxyPort = 0;
timeout = 0;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sergie,
Thanks very much for your response. I was able to download the service layer certificate and import it in to the trust store for my XS app. I restarted the SAP B1 Tools and the Service Layer .I am logged in to the XS Engine.
The Untrusted configuration works but , I am still getting the error "HpptClient request: request failed: SSL requested but no trust store configured" when I tried the secured option.
I am not sure what I am missing. Do you have any other suggestions?
Thanks.
Regards,
Mel
Hi Mel,
Let me advertise my post a bit) I've just published a blog post how to update SAP B1 rates using XS and Service Layer and there is a trust store configuration section there: Post
It's very close to your case so try to go through it firstly. Let me know if you are still confused with how to reach this goal.
| User | Count |
|---|---|
| 29 | |
| 14 | |
| 14 | |
| 6 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.