Skip to Content
0
Former Member
Oct 27, 2014 at 02:51 PM

SSL Connection Error.

1371 Views

Hi Experts,

I have followed the below url for configuring the SSL for HANA but getting the below error.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70d2b2b7-3574-3010-dcac-be68463c66e2?QuickLink=index&…

but while Connecting from hana studio with validate SSL certificate getting the below error and without validate the SSL certificate not getting the error and able to connect.

com.sap.ndb.studio.jdbc.JDBCConnectionStatus: Name in the server certificate is not the name expected by JDBC

Check client configuration:

1. Check that the host name used to connect is correct (not localhost, or 127.0.0.1)

2.Check the value used for the hostNameInCertificat property

Check server configuration:

1. Check that you are using the right SSL server certificate

For more details, see the error log

at com.sap.ndb.studio.jdbc.JDBCPlugin.createConnection(JDBCPlugin.java:284)

at com.sap.ndb.studio.navigator.wizards.newsapsystem.NewSAPSystemWizard$1$1.call(NewSAPSystemWizard.java:229)

at com.sap.ndb.studio.navigator.wizards.newsapsystem.NewSAPSystemWizard$1$1.call(NewSAPSystemWizard.java:1)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:744)

Caused by: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc:sap://xx.xx.xxx.xx:30015 [Cannot connect to host xx.xx.xxx.xx [SAP DBTech JDBC: Host name verification failed, found 1.2.840.113549.1.9.1=#161772616a6573687440696e666f726d61746963612e636f6d,CN=hanaxxxxxxx.com,OU=IT,O=INFA,L=Bangalore,ST=Karnataka,C=IN, expected CN=xx.xx.xxx.xx.], -813.].

at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:219)

at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:203)

at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:186)

at com.sap.db.jdbc.Driver.connect(Driver.java:238)

at com.sap.ndb.studio.jdbc.JDBCConnection$1.run(JDBCConnection.java:153)

Caused by: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Host name verification failed, found 1.2.840.113549.1.9.1=#161772616a6573687440696e666f726d61746963612e636f6d,CN=hanaxxxxxxx.com,OU=IT,O=INFA,L=Bangalore,ST=Karnataka,C=IN, expected CN=xx.xx.xxx.xx.

at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)

at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateSQLException(SQLExceptionSapDB.java:146)

at com.sap.db.rte.comm.SecureCommunication.openSocketIntern(SecureCommunication.java:609)

at com.sap.db.rte.comm.SecureCommunication.openSocket(SecureCommunication.java:512)

at com.sap.db.rte.comm.SecureCommunication.<init>(SecureCommunication.java:99)

at com.sap.db.rte.comm.SecureCommunication.<init>(SecureCommunication.java:55)

at com.sap.db.rte.comm.SecureCommunication$1.open(SecureCommunication.java:60)

at com.sap.db.jdbc.topology.Topology.getSession(Topology.java:145)

at com.sap.db.jdbc.Driver.openByURL(Driver.java:1019)

at com.sap.db.jdbc.Driver.connect(Driver.java:230)

... 1 more