# sendHubCommand to https endpoint?

**URL:** <https://community.smartthings.com/t/sendhubcommand-to-https-endpoint/99297>\
**Category:** Writing SmartApps\
**Created:** [September 20, 2017, 12:52am UTC](https://community.smartthings.com/t/sendhubcommand-to-https-endpoint/99297 "2017-09-20T00:52:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imbrian](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/imbrian/32/82733_2.png) [@imbrian](https://community.smartthings.com/u/imbrian)\
**Post date:** [September 20, 2017, 12:52am UTC](https://community.smartthings.com/t/sendhubcommand-to-https-endpoint/99297/1 "2017-09-20T00:52:27Z")

</div>

Has anyone successfully fired a sendHubCommand to an ssl endpoint?

Backstory for the curious: Smartthings is one part of my larger home automation system ([https://github.com/imbrianj/switchBoard](https://github.com/imbrianj/switchBoard)). My main interface is a web interface I’d built that uses AppCache for offline “last known state” viewing and SpeechRecognition ([https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition)) to allow me to dictate commands by voice. With recent changes to Webkit, AppCache no longer works with self-signed certificates (but does work without any SSL) - and SpeechRecognition does not work unless it has some kind of SSL endpoint (self-signed is OK). I’m trying to see what possibilities I have of upgrading everything to SSL - but my Smartthings app is unable to hit my home automation system once any SSL is enabled.

---

<div class="post-metadata">

**Author:** ![imbrian](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/imbrian/32/82733_2.png) [@imbrian](https://community.smartthings.com/u/imbrian)\
**Post date:** [September 20, 2017, 12:56am UTC](https://community.smartthings.com/t/sendhubcommand-to-https-endpoint/99297/2 "2017-09-20T00:56:11Z")

</div>

This is the smart app I’ve been using for a few years now that works great aside from lacking SSL support: [https://github.com/imbrianj/oauth\_controller/blob/master/oauth\_controller.groovy](https://github.com/imbrianj/oauth_controller/blob/master/oauth_controller.groovy)

---

<div class="post-metadata">

**Author:** ![imbrian](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/imbrian/32/82733_2.png) [@imbrian](https://community.smartthings.com/u/imbrian)\
**Post date:** [January 10, 2018, 3:18am UTC](https://community.smartthings.com/t/sendhubcommand-to-https-endpoint/99297/3 "2018-01-10T03:18:16Z")

</div>

If anyone is following this, my (imperfect) solution is to run both an http AND https server from the same machine. The code executed remains the same, but it was the only way I could see appeasing both the simple requirements of some devices (such as SmartThings hub) and modern browsers push for ssl everywhere in order take advantage of modern technologies.
