Re: [weewx-user] MQTT SSL Problems

2020-12-25 Thread miso k
So I checked from other browser, it is working. Cleared cache and it works also on my PC browser. Main thing was tls12 instead of tls1 in weewx.conf. Thank you all!!! Dátum: štvrtok 24. decembra 2020, čas: 0:18:27 UTC+1, odosielateľ: miso k > maybe i am using different certificates for both -

Re: [weewx-user] MQTT SSL Problems

2020-12-23 Thread miso k
maybe i am using different certificates for both - MQTT pub: [[[tls]]] tls_version = tlsv12 ca_certs = /etc/ssl/certs/ca-certificates.crt and what is defined in /etc/mosquitto/conf.d/myconfig.conf ... # Insecure mqtt to localhost only, and secure mqtt listener 18

Re: [weewx-user] MQTT SSL Problems

2020-12-23 Thread miso k
it is FQDN - jastrabie.online - look at the letter behind B so i let the host as it is. is my port correct -9001? SSL should be 1 as "On", or should be the TLS protocol version - 1.2, or even 12? # MQTT Websockets defaults mqtt_websockets_enabled = 1 mqtt_websockets_host = "jastrab

Re: [weewx-user] MQTT SSL Problems

2020-12-23 Thread vince
On Wednesday, December 23, 2020 at 2:05:28 PM UTC-8 misk...@gmail.com wrote: > just to be sure - server_url = mqtt://pi:password@url:8883/ > URL can be localhost, or should I use my https:// webpage > "jastrabie.online"? > Never localhost Always use the MQTT broker's ip address or hostname o

Re: [weewx-user] MQTT SSL Problems

2020-12-23 Thread miso k
I have proofed, that pi@WeeWX:~ $ mosquitto_sub -h jastrabie.online -p 8883 -t weather/# -d --tls-version tlsv1.2 --cafile /etc/ssl/certs/ca-certificates.crt works! so now only setup the belchertown correctly? Dátum: streda 23. decembra 2020, čas: 23:05:28 UTC+1, odosielateľ: miso k > Wow! > tha

Re: [weewx-user] MQTT SSL Problems

2020-12-23 Thread miso k
Wow! that *tlsv12* has really helped! now tail -f is showing no errors. just to be sure - server_url = mqtt://pi:password@url:8883/ URL can be localhost, or should I use my https:// webpage "jastrabie.online"? My Belchertown settings still does not work: # MQTT Websockets defaults mqtt

Re: [weewx-user] MQTT SSL Problems

2020-12-23 Thread mh081...@gmail.com
I mean [[MQTT]] server_url = mqtt://pi:password@url:8883/ topic = weather unit_system = METRIC binding = archive, loop aggregation = aggregate log_success = False log_failure = True [[[tls]]] tls_version = tlsv12

Re: [weewx-user] MQTT SSL Problems

2020-12-23 Thread mh081...@gmail.com
Hi, have you set tlsv12 in weewx.conf under [[MQTT]] Section? Like misk...@gmail.com schrieb am Mittwoch, 23. Dezember 2020 um 22:36:27 UTC+1: > Thank you Greg, > so I have tried: > pi@WeeWX:~ $ mosquitto_pub -h localhost -p 8883 -t "weather/test" -m > "hello world. this is to the weather t

Re: [weewx-user] MQTT SSL Problems

2020-12-23 Thread miso k
Thank you Greg, so I have tried: pi@WeeWX:~ $ mosquitto_pub -h localhost -p 8883 -t "weather/test" -m "hello world. this is to the weather topic with authentication" -u "pi" -P "" -d Client mosqpub|24614-WeeWX sending CONNECT Error: The connection was lost. with port 1883 it works: pi@WeeWX:~ $

Re: [weewx-user] MQTT SSL Problems

2020-12-23 Thread Greg Troxel
Hard to say what's wrong, but use mosquitto_publish to test. I have the emqtt extension publishing to mqtt/tls just fine and I do not run mqtt w/o ssl at all. Turn on logging on th broker, and look with tcpdump. -- You received this message because you are subscribed to the Google Groups "we