I'm now exposing my Domoticz server on port 80 and 443 using a nginx server forcing HTTPS traffic and requiring that a client certificate is installed on the client. It logs me in to Domoticz automatically. I access Domoticz with my web browser which is X.509 enabled.
When I'm away from home, I not only want to remote control my home, I also want to do some automation. I use Tasker for that. I've successfully set up a the SSH plugin for Tasker so I can issue bash commands (typically by using curl to set switches etc ...) but that's not X.509 authentication. I'm looking for a way to use a X.509 enabled application to carry out the Tasker tasks for me. While this SSH method seems to work good I'd be happy to eliminate it if I can find a X.509-enabled way to do it instead.
@gordonb3 suggested that that can be done using the free RESTask for Tasker plugin.
I've installed that plugin and now experimenting to see if it works with my X.509 certificate or not. The certificate is self generated using XCA. Currently it's close but no cigar. I can load my certificate but I get a return code of "400".gordonb3 wrote:According to this web page here tasker should be able to do it:
http://tinsley.io/2015/03/openhab-tasker-android-phone/
It would be interesting to know if someone else has this working or not.