Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
mgrasshoff
Advisor
Advisor

Hi there.

You may not know but I contributed to the openSAP course "Introduction to SAP HANA Cloud Platform". In this course I explained how to configure SMP Cloud to access a backend and to consume it using an HTML5 App.

During this course the backend was supposed to be just an HTTP backend, but also an HTTPS backend was used by some participants.


Of course does SMP Cloud supports HTTPS connections to backends, but this does not come out of the box. In order to allow HTTPS backend connections please follow the steps listed below:

First get the HANA Cloud Platform SDK. You can download it here: SAP Development Tools for Eclipse


NOTE: When prompted for password in the console client, provide the SDN password of the user.

NOTE: sXXXXXXXX must be substituted by your SCN User

Follow the steps described below:

Step 1: Get the list of destinations for the account by entering the following command in your command promt (Windows) or shell (Linux/Unix/Mac). Make sure you have an internet connection.

neo get-destination --account sXXXXXXXXtrial --user sXXXXXXXX --provider-account sapmobile --provider-application mobile --host hanatrial.ondemand.com

After choosing your particular destination and security profile, enter the following command

neo get-destination --account sXXXXXXXXtrial --user sXXXXXXXX --provider-account sapmobile --provider-application mobile --host hanatrial.ondemand.com --name <destination_name> --localpath <Path to download the destination>

<destination_name> from the first command output.

<Path to download the destination> e.g. C:\ or .

Step 2: Go to the path and edit the file, by adding the following line :

TrustAll=TRUE

Step 3: Now upload the same file using the following command

neo put-destination --account sXXXXXXXXtrial --user sXXXXXXXX --provider-account sapmobile --provider-application mobile --host hanatrial.ondemand.com --localpath <Path for the downloaded file>

Of course you have to adjust the account name and host it you are not on a trial account. Obviously it means that the -host is then hana.ondemand.com, instead of hanatrial.ondemand.com.


Have Fun,

Martin Grasshoff




EDIT: claudia.pacheco2 wrote an updated guide for HCPms. Thanks!! https://scn.sap.com/docs/DOC-63416


22 Comments