mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

Error: Socket Error on client on MAC

Open cah-sachin opened this issue 6 years ago • 2 comments

I am getting following error, /usr/local/opt/mosquitto/sbin/mosquitto -v -c /usr/local/etc/mosquitto/mosquitto.conf 1553921695: mosquitto version 1.5.8 starting ^[[A1553922531: New connection from fe80::c15:6086:def9:7041 on port 8883. 1553922531: Socket error on client , disconnecting.

when i am publishing via following command on mac

mosquitto_pub --cafile ca.crt --cert server.crt --key server.key -d -h -2.local -p 8883 -t test -m "hello there"

I have updated configuration to run mosquito for TLS. If i remove certificate and publish without it, it work fine. I have generated certificate via openssl command.

cah-sachin avatar Mar 30 '19 05:03 cah-sachin

My guess would be that you have got duplicate or conflicting parameters in your certificate files. All certificates must be unique (I notice you are using the server certificates in your client). Try using a script like https://github.com/owntracks/tools/blob/master/TLS/generate-CA.sh to generate your certificates to see if that solves your problem.

ralight avatar Apr 11 '19 20:04 ralight

@cah-sachin did you figure out the problem? Can this issue be closed?

ckrey avatar Oct 15 '24 07:10 ckrey