cancel
Showing results for 
Search instead for 
Did you mean: 

SSL error when connecting in SAP HANA Cloud Portal tutorial

0 Kudos

Hi,

I'm going through the tutorial for SAP HANA Cloud Portal -

Unfortuanatelly I have problems with deploying public destinations (page 9).

When I try to deploy the destination for the CRM back from the command console using neo command with relevant parameters and entering my password I get the following error:

ERROR; SSL error when connecting to https://configapi.hanatrial.onedemand.com/configuraiton/api/rest; server certificate might be invalid or untrusted.

Logfiles.

Session log

2014-08-18 15:53:59,579 DEBUG [main] org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1: Get connection: HttpRoute[{s}->https://configapi.hanatrial.onedemand.com], timeout = 0 2014-08-18 15:53:59,581 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: [HttpRoute[{s}->https://configapi.hanatrial.onedemand.com]] total kept alive: 0, total issued: 0, total allocated: 0 out of 20 2014-08-18 15:53:59,581 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: No free connections [HttpRoute[{s}->https://configapi.hanatrial.onedemand.com]][null] 2014-08-18 15:53:59,581 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: Available capacity: 2 out of 2 [HttpRoute[{s}->https://configapi.hanatrial.onedemand.com]][null] 2014-08-18 15:53:59,582 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: Creating new connection [HttpRoute[{s}->https://configapi.hanatrial.onedemand.com]] 2014-08-18 15:53:59,729 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnectionOperator: Connecting to configapi.hanatrial.onedemand.com/216.128.6.149:443 2014-08-18 15:54:00,035 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection: Connection closed 2014-08-18 15:54:00,035 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection: Connection shut down 2014-08-18 15:54:00,036 DEBUG [main] org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager: Released connection is not reusable. 2014-08-18 15:54:00,036 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: Releasing connection [HttpRoute[{s}->https://configapi.hanatrial.onedemand.com]][null] 2014-08-18 15:54:00,037 DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute: Notifying no-one, there are no waiting threads

Console log

2014-08-18 15:53:56,080 INFO  [main] com.sap.jpaas.infrastructure.console.CommandManager: Starting execution of command [get-destination] 2014-08-18 15:53:56,086 INFO  [main] com.sap.jpaas.infrastructure.console.CommandManager: Command [get-destination] init() finished for [1] ms 2014-08-18 15:54:00,038 INFO  [main] com.sap.jpaas.infrastructure.console.CommandManager: Command [get-destination] cleanup() finished for [0] ms 2014-08-18 15:54:00,046 FATAL [main] com.sap.jpaas.infrastructure.console.ConsoleClient: (!) ERROR; SSL error when connecting to https://configapi.hanatrial.onedemand.com/configuration/api/rest; server certificate might be invalid or untrusted com.sap.jpaas.infrastructure.console.exception.ValidationException at com.sap.jpaas.infrastructure.console.command.RemoteCommand.getHttpClient(RemoteCommand.java:97) at com.sap.jpaas.infrastructure.console.command.UnsecuredRemoteCommand.getHttpClient(UnsecuredRemoteCommand.java:57) at com.sap.core.connectivity.config.cmd.ConfigurationConsoleCommand.createHttpClient(ConfigurationConsoleCommand.java:254) at com.sap.core.connectivity.config.cmd.GetAction.download(GetAction.java:79) at com.sap.core.connectivity.config.cmd.GetAction.run(GetAction.java:52) at com.sap.jpaas.infrastructure.console.CommandManager.run(CommandManager.java:295) at com.sap.jpaas.infrastructure.console.CommandManager.run(CommandManager.java:260) at com.sap.jpaas.infrastructure.console.ConsoleClient.run(ConsoleClient.java:235) at com.sap.jpaas.infrastructure.console.ConsoleClient.main(ConsoleClient.java:85) Caused by: com.sap.core.utils.infrastructure.validation.HostValidationException: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at com.sap.core.utils.infrastructure.validation.LandscapeHostValidator.getHttpClient(LandscapeHostValidator.java:304) at com.sap.jpaas.infrastructure.console.command.RemoteCommand.getHttpClient(RemoteCommand.java:95) ... 8 more Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:397) at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:390) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:776) at com.sap.core.utils.infrastructure.validation.LandscapeHostValidator.getHttpClient(LandscapeHostValidator.java:284) ... 9 more

BR

Beata

Accepted Solutions (1)

Accepted Solutions (1)

former_member199536
Active Participant
0 Kudos

Hi Beata,

This might be an issue with your credentials but lets initially try to manually upload the destinations through the cockpit of you HCP trial account.

  1. Log on to you HCP acount using your SCN credentials
  2. On the left side panel click Destinations
  3. For each Destination file you wish to upload
    1. Click Import from File
    2. Select the destination file you want to upload
    3. Click Save

Changes may take up to 5 minutes to effect.

You can read more about this here

Let me know if this helps.

Regards,

Ido

0 Kudos

Hi Ido,

Thank you for the suggestion. I uploaded both files from the excercise - crm__public and google__public. No problems there.

However I'm not sure if the destinations are correct.

For crm__public with https://proxyi064832trial.hanatrial.ondemand.com:443 I get the message that the service is unavailable / under maintainance.

For google__public - https://ajax.googleapis.com - the message says code 404.

How else I can check that the uploaded destinations are correct?

Best regards

Beata

former_member199536
Active Participant
0 Kudos

Hi Beata,

Regarding the destination files:

  • google__public - like you wrote the destination file refers to the ajax.googleapis.com URL which is the root location of the Google hosted libraries but should not be accessed directly to that location. The widgets in this exercise use the google maps embed API libraries which are located under this location. I ran the Venue List & Map widgets on my account with the destination and it works fine.
  • crm__public - this scenario connects your trial account to a CRM on-premise backend system. To enable this connection to an on-premise system we installed a SAP Connector on one of our servers. Unfortunately the specific connector allocated for this exercise seems to be faulty and therefore you get the message that the service is unavailable / under maintenance. We will check what the issue is and I will get back to you once we have a solution that enables completing this scenario.

Let me know if the Google widgets work for you.

Regards,

Ido

0 Kudos

Hi Ido,

Thank you. The destination google__public works fine for me too with the Venue List and Map.

I will then wait for the status update on crm__public destination.

In my current excercise I use C4C for the registration, but how and where I can check the saved data?

Best regards,

Beata

former_member199536
Active Participant
0 Kudos

Hi Beata,

The CRM scenario is working again. We had to re install the Connector and deploy a new proxy app.

Therefore you would need to download the code from the GitHub repository again. The changes you need to do on your side:

1. Redeploy the new crm__public destination file - the updated destination now points to the new location of the proxy application

2. Update the code of the registration form scripts (form.js and form.spec.xml).


Regards,

Ido

Answers (0)