Error: Socket Error on client on MAC
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
when i am publishing via following command on mac
mosquitto_pub --cafile ca.crt --cert server.crt --key server.key -d -h
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.
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.
@cah-sachin did you figure out the problem? Can this issue be closed?