Page 1 of 1
Python Plugin framework - HTTPS session
Posted: Friday 30 August 2019 9:37
by pipiche
If I'm not mistaken, the HTTPS doesn't create an https schema
Code: Select all
if (Parameters["Mode1"] == "443"): self.sProtocol = "HTTPS"
self.httpConn = Domoticz.Connection(Name=self.sProtocol+" Test", Transport="TCP/IP", Protocol=self.sProtocol, Address=Parameters["Address"], Port=Parameters["Mode1"])
self.httpConn.Connect()
For instance when doing it, I can only connect via http:// schema while using https:// crash the plugin
Re: Python Plugin framework - HTTPS session
Posted: Saturday 07 September 2019 21:12
by Barberousse
One of my plugin (
https://github.com/guillaumezin/DomoticzLinky) manages to connect with https, it even manipulates cookies, what do you mean by "via https schema"? What address do you give? What is your exact error message? What are your OS, Python and SSL library versions?
Re: Python Plugin framework - HTTPS session
Posted: Sunday 08 September 2019 8:07
by Dnpwwo
You are going to need to supply a crash dump and a Python dump if possible by running from the command line and piping the output to a log.
Re: Python Plugin framework - HTTPS session
Posted: Sunday 08 September 2019 14:06
by pipiche
I’m currently away. Will come back later end of the month
Envoyé de mon iPhone en utilisant Tapatalk
Re: Python Plugin framework - HTTPS session
Posted: Wednesday 25 September 2019 14:41
by pipiche
Barberousse wrote: Saturday 07 September 2019 21:12
One of my plugin (
https://github.com/guillaumezin/DomoticzLinky) manages to connect with https, it even manipulates cookies, what do you mean by "via https schema"? What address do you give? What is your exact error message? What are your OS, Python and SSL library versions?
Ok, I'll investigate further, but mainly if I do
https://my-domoticzip:9443 it failed, and some domoticz thread crashed, while if I do
http://my-domoticzip:9443 it works
On the Server side (Domoticz) it is RPI running Fedora 30 distribution and a full re-compiled version of Domoticz beta.
On the Client side MacOS with Safari, Chrome or Firefox client
Will investigate next week and come back.
But if I look into your LinkyPlugin , if I'm not mistaken the plugin is not acting as a Web Server, but more as a Web Client towars the Enedis Webserver . In my case, the plugin implement a Web Server in order to handle Web request , and my feeling is in the Python Framework the HTTPS protocol is not implemented as such and so performed only as HTTP.
Re: Python Plugin framework - HTTPS session
Posted: Wednesday 25 September 2019 14:56
by pipiche
Dnpwwo wrote: Sunday 08 September 2019 8:07
You are going to need to supply a crash dump and a Python dump if possible by running from the command line and piping the output to a log.
Do you confirm that you have implemented the SSL part into the Python Framework when creating a WebServer ?
Re: Python Plugin framework - HTTPS session
Posted: Sunday 06 October 2019 18:20
by pipiche
pipiche wrote: Wednesday 25 September 2019 14:56
Dnpwwo wrote: Sunday 08 September 2019 8:07
You are going to need to supply a crash dump and a Python dump if possible by running from the command line and piping the output to a log.
Do you confirm that you have implemented the SSL part into the Python Framework when creating a WebServer ?
@Dnpwwo, do you confirm that HTTPS is implemented in the python plugin Framework ? and we can use (server mode) ?
Re: Python Plugin framework - HTTPS session
Posted: Saturday 02 November 2019 17:11
by pipiche
Please do take the HTTP Listener plugin and instead of listening on Protocol HTTP, just put HTTPS , you will see that the Python Framework simply crash