otmonitor linked to old ssl/crypto libraries

This Forum is about the Opentherm gateway (OTG) from Schelte

Moderator: hvxl

otmonitor linked to old ssl/crypto libraries

Postby algol » Mon Jan 01, 2018 3:11 pm

Hi, happy new new year to all of you!

I control my Hoval boiler using an OTGW and would like to activate the alerts when by boiler goes into fault through SMS messaging. I'm connecting to the OTGW with a RaspberryPi 2 running Raspbian Stretch.

it appears that otmonitor 4.3 is calling the libssl1.0.0 and libcrypto1.0.0 and gives an error when triggering an alert. These libraries have been replaced by 1.0.2.

I have tried creating linux soft links from 1.0.0 to 1.0.2, but that also fails as the OpenSSL version also differs. I have also tried adding the older 1.0.0 libraries, but that also fails with a 302 error.

UPDATE: adding the old libraries in /usr/bin actually allows to send e-mails again. Only the SMS seems to fail with an error 302 and this seems to be linked to the provider I'm using VoipCheap. I rapidly went through t^source and didn't see anything wrong.

Does OTMonitor have a log (aside from the OTGW log)?


Anyone found a solution to this? Is there a more recent tclkit for arm that uses updated libraries?

Thanks for any help!

Arnaud
algol
Starting Member
Starting Member
 
Posts: 7
Joined: July 2013

Re: otmonitor linked to old ssl/crypto libraries

Postby hvxl » Wed Jan 24, 2018 5:40 pm

algol wrote:Only the SMS seems to fail with an error 302 and this seems to be linked to the provider I'm using VoipCheap. I rapidly went through t^source and didn't see anything wrong.

A http 302 response is usually not an error, just a redirect. OTMonitor doesn't follow the redirect because it doesn't have the possibility to display a web page anyway. So it just reports the return code 302.

Trying to send an SMS via voipcheap without an account gives me a redirect to a page that says that my session has expired (https://www.voipcheap.com/warning.html).

To get more details of what happened with your SMS attempt, switch on the otmonitor web server (if necessary) and point your browser to http://localhost:8080/alertlog.txt (adjust the host:port part as necessary).
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1106
Joined: June 2010

Re: otmonitor linked to old ssl/crypto libraries

Postby algol » Sat Mar 17, 2018 12:38 pm

Hello,

Still haven't figured it out. Has anyone succeeded in using VoipCheam with otmonitor?

Here is the log:

12:08:50.428: 12:08:50.427844 Generating a test message
12:08:50.428: Sending SMS via VoipCheap
12:08:50.428: username=zzzzzz
12:08:50.428: password=********
12:08:50.429: from=+nnnnnn
12:08:50.429: to=+nnnnnn
12:08:50.429: text=Opentherm gateway test message
12:08:50.430: Query:
12:08:50.430: username=zzzzzz&password=zzzzzz&from=%2Bnnnnnn&to=%2Bnnnnnn&text=Opentherm%20gateway%20test%20message
12:08:50.431: Contacting https://www.voipcheap.com/myaccount/sendsms.php
12:08:50.896: Status: ok
12:08:50.897: Code: 302
12:08:50.897: Headers:
12:08:50.897: Server: nginx
12:08:50.897: Date: Sat, 17 Mar 2018 11:08:50 GMT
12:08:50.898: Content-Type: text/html
12:08:50.898: Transfer-Encoding: chunked
12:08:50.898: Connection: close
12:08:50.898: P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
12:08:50.898: Set-Cookie: PHPSESSID=hcclbt7h4umhraqtosteleaff1; path=/; secure; HttpOnly
12:08:50.899: Expires: Thu, 19 Nov 1981 08:52:00 GMT
12:08:50.899: Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
12:08:50.899: Pragma: no-cache
12:08:50.899: Set-Cookie: 784ea045a46879011784356462319196=147; path=/; domain=.voipcheap.com; secure; httponly
12:08:50.899: Set-Cookie: 784ea045a46879011784356462319196=147; path=/; domain=.voipcheap.com; secure; httponly
12:08:50.900: Set-Cookie: 784ea045a46879011784356462319196=147; path=/; domain=.voipcheap.com; secure; httponly
12:08:50.900: Set-Cookie: language=en; expires=Mon, 25-Jun-2018 11:08:50 GMT; path=/; domain=.voipcheap.com; secure; httponly
12:08:50.900: Set-Cookie: 784ea045a46879011784356462319196=147; path=/; domain=.voipcheap.com; secure; httponly
12:08:50.900: Set-Cookie: 784ea045a46879011784356462319196=147; path=/; domain=.voipcheap.com; secure; httponly
12:08:50.900: Set-Cookie: language=en; expires=Mon, 25-Jun-2018 11:08:50 GMT; path=/; domain=.voipcheap.com; secure; httponly
12:08:50.901: Location: https://www.voipcheap.com/warning.html
12:08:50.901: Data:
12:08:50.901:
12:08:50.901: Failed: 302


I have used the exact string in the log with a browser and even with a shell wget "" with success.

Any idea ?

Cheers!

Arnaud
algol
Starting Member
Starting Member
 
Posts: 7
Joined: July 2013

Re: otmonitor linked to old ssl/crypto libraries

Postby hvxl » Sat Mar 17, 2018 4:14 pm

Too bad you didn't show how you did your wget. Was it:
  1. wget 'https://www.voipcheap.com/myaccount/sendsms.php?username=zzzzzz&password=zzzzzz&from=%2Bnnnnnn&to=%2Bnnnnnn&text=Opentherm%20gateway%20test%20message'
  2. wget --post-data='username=zzzzzz&password=zzzzzz&from=%2Bnnnnnn&to=%2Bnnnnnn&text=Opentherm%20gateway%20test%20message' https://www.voipcheap.com/myaccount/sendsms.php
For VoipCheap, otmonitor currently does the equivalent of #2. If you tested #1, please also try #2. If that doesn't work, you will need to add "method GET" to the VoipCheap definition in alerts.tcl.
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1106
Joined: June 2010


Return to Opentherm Gateway Forum

Who is online

Users browsing this forum: No registered users and 1 guest