Python framework beta support for secure connections
Posted: Sunday 25 March 2018 14:01
The next beta fill formally add secure transport support to the Python framework.
Secure protocols HTTPS and MQTTS are supported but any TCP/IP connection can be made secure by specifying TLS/IP as the transport instead.
For Example:are functionally the same and will open an SSL session to the target address.
Domoticz does not rigorously enforce TLS certificate checks as yet so this should only be used to trusted targets.
Secure protocols HTTPS and MQTTS are supported but any TCP/IP connection can be made secure by specifying TLS/IP as the transport instead.
For Example:
Code: Select all
self.httpConn = Domoticz.Connection(Name="Test", Transport="TLS/IP", Protocol="HTTP", Address=Parameters["Address"], Port="443")
self.httpConn = Domoticz.Connection(Name="Test", Transport="TCP/IP", Protocol="HTTPS", Address=Parameters["Address"], Port="443")
Domoticz does not rigorously enforce TLS certificate checks as yet so this should only be used to trusted targets.