ERROR] [org.openhab.io.net.http.HttpUtil ] - Fatal transport error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
At the end of my checks I’ve found that the website https://www.meteoalarm.eu from today has an expired certificate.
Any clue how to add an exception for that?
The second issue is with http binding configuration. Trying to reduce my logs I was thinking to solve this issue commenting out the part related to meteoalarm in my http.cfg
This is the piece of code:
# configuration of Meteoalarm cache every 10 mins
#MeteoalarmToday.url=https://www.meteoalarm.eu/en_UK/0/0/IT003-Lombardia.html
#MeteoalarmToday.updateInterval=600000
#MeteoalarmTomorrow.url=https://www.meteoalarm.eu/en_UK/1/0/IT003-Lombardia.html
#MeteoalarmTomorrow.updateInterval=600000
the problem is, even if commented out, the evidence in my logs is the binding is still asking for updating the cache:
2018-11-06 14:38:15.951 [DEBUG] [ab.binding.http.internal.HttpBinding] - item 'Http_Meteoalarm_Today8' is fetched from cache
2018-11-06 14:38:15.952 [DEBUG] [ab.binding.http.internal.HttpBinding] - updating cache for 'MeteoalarmToday' ('https://www.meteoalarm.eu/en_UK/0/0/IT003-Lombardia.html')
2018-11-06 14:38:16.018 [ERROR] [org.openhab.io.net.http.HttpUtil ] - Fatal transport error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2018-11-06 14:38:16.019 [ERROR] [ab.binding.http.internal.HttpBinding] - No response received from 'MeteoalarmToday'
pid:org.openhab.http
# timeout in milliseconds for the http requests (optional, defaults to 5000)
#timeout=
# the interval in milliseconds when to find new refresh candidates
# (optional, defaults to 1000)
#granularity=
# whether to substitute the current time or state value into the URL
# (optional, defaults to true)
#format=
# configuration of the first cache item
#<id1>.url=
#<id1>.updateInterval=
# configuration of the second cache item
#<id2>.url=
#<id2>.updateInterval=
# configuration of Meteoalarm cache every 10 mins
#MeteoalarmToday.url=https://www.meteoalarm.eu/en_UK/0/0/IT003-Lombardia.html
#MeteoalarmToday.updateInterval=600000
#MeteoalarmTomorrow.url=https://www.meteoalarm.eu/en_UK/1/0/IT003-Lombardia.html
#MeteoalarmTomorrow.updateInterval=600000
<...>