Ubi OAUTH WebAPI SSL Issue


(Patrick Stuart [@pstuart]) #1

So I have this almost done using Ubi’s WebAPI. The downside is this will only work with those given access to the API, so I can’t release the code yet…

Anyway, I get this error:

javax.net.ssl.SSLException: hostname in certificate didn't match

When I try to get a list of devices from their API.

Obviously their SSL certification doesn’t match the API, huge mistake???

Anyway, is there any override to the httpPost or httpGet that might allow ST to ignore the cert mismatch?

BTW: Huge props to who ever wrote the Ecobee (Connect) SmartApp example… That helped a ton in figuring out how to do OAUTH to a 3rd party.