Modul weather: SSL-Zertifikat kann nicht verifiziert werden

Begonnen von m8ichael, 23 April 2016, 01:31:09

Vorheriges Thema - Nächstes Thema

m8ichael

Hallo,

ich nutze seit einiger Zeit das weather-Modul. Seit ein paar Wochen gibt es aber offenbar das Problem, ein SSL-Zertifikat zu validieren:


https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=657169%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys:
Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed


Laut Forumsuche kann man die "Holzhammermethode" verwenden (siehe analog hier https://forum.fhem.de/index.php?topic=32866.0) und die Überprüfung abschalten, aber das ist ja irgendwie nicht im Sinne des Erfinders... Gibt es eine andere Möglichkeit? Und falls nicht, wie kann ich die Abschaltung der Überprüfung vornehmen?

Viele Grüße

Michael

LuckyDay

ich hab die Fehlermeldung nicht, hast du ne fritzbox?

was hast du denn überhaupt?

m8ichael

Hallo,

ich nutze fhem auf einer Windows-Maschine mit strawberry Perl (5.22). Das Modul hat seit langer Zeit gut funktioniert, bis dann Ende März das Problem auftauchte.

Viele Grüße

Michael

LuckyDay

Windows keine Ahnung

das Problem ist dass Yahoo eine komplett neue Api auf https umgestellt hat mit key , mal sehen vielleicht meldet sich noch jemand

iCure


Falkentavio

Wollte gerade das Weather Modul in meinem fhem neu einrichten und habe das selbe Problem.
Habe auch mal curl auf die selbe Route gefeuert, das geht durch mit SSL. curl meckert sonst sofort rum wenn das zertifikat nicht validiert.

Das ganze läuft auf einem RaspberryPi B 2

docb

Hallo,
ich habe jetzt mal gewartet was sich hier so tut - nachdem nichts kam - auch von mir die Nachfrage: hat schon jemand eine Lösung? Bei mir das gleiche Problem (auch Windows mit active-perl):

https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837001%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Vor allem kapiere ich es nicht ganz - wenn ich die URL mit dem Browser aufrufe (https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837001%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org), gibt es kein Gemecker. Muss also irgendwie an Fhem/perl liegen?


Viele Grüße
doc
I love FHEM!

Phill

Gleiches Problem seit Anfang Juli bei mir.

Die URL in der Datei "FHEM/YahooWeatherAPI.pm" von https auf http zu ändern hat erst mal geholfen. Aber nur bis zum nächsten update vermutlich!
Homebrew 1-Wire / HomeMatic Mix - Cubietruck mit FHEM als Server - Raspberry PI 3 als Informationsanzeige im MagicMirror Stil - Raspberry Pi 1 als Klingelanlage - VDR

Mein Modul: Talk2Fhem - Mein Tipp: https://forum.fhem.de/index.php/topic,82442.0.html

Ma_Bo

Ich habe seit heute auch mehrere von diesen Einträgen in meinem Log :

2016.08.23 14:35:38.252 3: YahooWetter: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12834150%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed with unknown error error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed with unknown error error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Mein FHEM läuft auf einem NUC und bis heute hatte ich diese Probleme nicht, ich habe auch keinerlei Änderungen an meinem System oder Update FHEM durchgeführt.

Kann man da schon was machen, gibt´s nen Patch oder dergleichen?

Grüße Marcel
NUC mit FHEM, HM Heizungsthermostate, HM Wandthermostate, Intertechno Funksteckdosen, 10" Tablet als Wanddisplay, KeyMatic, Fensterkontakte, Fensterkontakte umgebaut als Wassermelder und Briefkastenmelder, Aussenthermostat, Anwesenheitssteuerung über Fritz Box, Google Home usw. usw.

Phill

Ok, ich weiß jetzt wo mein Problem her kam.

Die Systemzeit war total verstellt. Auf 2010  :o. Keine Ahnung wieso, aber jetzt gehts auch wieder mit https.

Homebrew 1-Wire / HomeMatic Mix - Cubietruck mit FHEM als Server - Raspberry PI 3 als Informationsanzeige im MagicMirror Stil - Raspberry Pi 1 als Klingelanlage - VDR

Mein Modul: Talk2Fhem - Mein Tipp: https://forum.fhem.de/index.php/topic,82442.0.html

docb

Hm.  Systemtzeit passt bei mir, ein TimeNow() liefert 2016-08-24 22:46:30. Das kann es wohl nicht sein.
Aber sehr komisch:
1. obwohl in meinem Device eine Intervallzeit von 24h eingestellt ist (ich wollte verhindern, dass das Log vollgespammt wird), kommen bei mir die Logfehlermeldungen am laufenden Band

2016.08.24 22:48:54.551 3: Wetter: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837000%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
2016.08.24 22:47:54.219 3: Wetter: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837000%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
2016.08.24 22:46:52.411 3: Wetter: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837000%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
2016.08.24 22:45:50.856 3: Wetter: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837000%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
2016.08.24 22:44:58.629 3: CUL_HM set UG_Steckdose_Sw statusRequest
2016.08.24 22:44:48.837 3: Wetter: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837000%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
2016.08.24 22:43:47.801 3: Wetter: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837000%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
2016.08.24 22:42:46.797 3: Wetter: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837000%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
2016.08.24 22:41:45.727 3: Wetter: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837000%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
2016.08.24 22:40:44.869 3: Wetter: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837000%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed


2. habe ich vorgestern in der YahooWeatherApi.pm auch einfach mal das s aus dem https bei use constant URL rausgelöscht - ändert nichts.

Ich versuche jetzt mal mit attr verbose 0 das vollspammen des logs zu verhindern. Die Werte holt er ja korrekt ab, mal schauen, ob das klappt. Ist halt auch nicht die Lösung sondern nur Murks...
Viele Grüße
doc
I love FHEM!

frank

Zitat2016.08.24 22:48:54.551 3: Wetter: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=12837000%20and%20u=%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys: Can't connect(2) to https://query.yahooapis.com:443: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
wenn dich diese meldungen mit verboslevel 3 (rot) stören, reicht es doch verbose auf 2 runterzudrehen.

Zitat2. habe ich vorgestern in der YahooWeatherApi.pm auch einfach mal das s aus dem https bei use constant URL rausgelöscht - ändert nichts.
auch neu geladen oder restart gemacht?
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

FunkOdyssey

Ich hatte den Fehler auch diese Wochen ein paar Tage lang.

Nahezu exakt am/um 2016.08.24 00:00:01 ist der Fehler verschwunden.

Komisch.

Ma_Bo

Bei mir besteht der Fehler weiterhin, fast täglich bekomme ich zu unterschiedlichen Zeiten diese Meldung mit einem freeze von ca 15 Sekunden dazu.

Gestern habe ich fhem upgedatet, aber gegen 23 Uhr war wieder das Problem, heute Nachmittag probiere ich es mal mit dem http anstelle von https.

Oder hat schon jemand herausgefunde, warum das so ist?

Grüße Marcel
NUC mit FHEM, HM Heizungsthermostate, HM Wandthermostate, Intertechno Funksteckdosen, 10" Tablet als Wanddisplay, KeyMatic, Fensterkontakte, Fensterkontakte umgebaut als Wassermelder und Briefkastenmelder, Aussenthermostat, Anwesenheitssteuerung über Fritz Box, Google Home usw. usw.