Skip to Content
0
May 04, 2016 at 07:58 AM

SAP Hana WebIDE: 500 Hostname/IP doesn't match certificate's altnames

832 Views

Hi,

if we try to use our odataservice we get this error:

500 Hostname/IP doesn't match certificate's altnames: "Host: .... is not cert's CN: ..."

I found two solutions:


One first solution was this, we had to set the parameter.

xs set-env app-js NODE_TLS_REJECT_UNAUTHORIZED 0

But after we set it we got a lot of other problems. We set it back again.

The second solution is described here by Thomas Jung:

SAP HANA SPS 11: New Developer Features; HDI

"Yes the hostname you are using to connect doesn't match the HTTPS certificate hostname. Perhaps you are tyring to connect with localhost or some other alias. You must use the same hostname to connect with the XS Client as you use to start the controller. It is very specific about this in order to validate the HTTPS certificates."


Does it mean, there must be a different hostname inside of the certificate to the hostname which we are connecting?

If I read the answer by AVK, I don't know why he is talking about the yml file. I'm not aware that we have to set there our hostname...?😕

"yes in the .yml file the destination url that i had given was 'dcidshsapp01.dci.local' which was what i used to check if the xs controller was working. But when i changed the destination url in .yml file to dcidshsapp01 (which i thought was the host name in the certificate) everything started working fine. '.dci.local' was not required for the routing purposed I guess ."



Would be very nice, if one of you could help us.