check_ssl_cert icon indicating copy to clipboard operation
check_ssl_cert copied to clipboard

Using protocol MQTTS trigger a protocol error on server side

Open vulcainman opened this issue 5 months ago • 2 comments

Bug description

When the script is used to check a MQTTS server, it works as expected but, an error is logged on broker side indicating a protocol error:

1705416973: New connection from 10.83.86.20:55972 on port 8883.
1705416973: Client <unknown> disconnected due to protocol error.

Steps to reproduce

Call the script against a mosquitto server:

check_ssl_cert -P mqtts -H my.host.com -p 8883

Expected behavior

The script should indicate if the SSL certificate is OK and, it should init and close the connection with the MQTT broker properly.

System:

  • OS: Debian
  • OS version: 13 (Trixie)
  • check_ssl_cert version: 2.79.0
  • OpenSSL version (openssl version): 3.1.4-2
  • MQTT broker : Mosquitto 2.0.11

vulcainman avatar Jan 16 '24 15:01 vulcainman