eclipse / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
9k stars 2.39k forks source link

Error: Socket Error on client on MAC #1213

Open cah-sachin opened 5 years ago

cah-sachin commented 5 years ago

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.

ralight commented 5 years ago

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.

ckrey commented 6 days ago

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