thomasnordquist / MQTT-Explorer

An all-round MQTT client that provides a structured topic overview
https://mqtt-explorer.com
Other
3.07k stars 290 forks source link

Issue with Openssl encryption padding #729

Open leodario7 opened 1 year ago

leodario7 commented 1 year ago

Hello,

I am currently running version 0.3.5 on Ubuntu 22.04

I am using some self-signed certificates created with RSA. They have been working fine for a while, but since they expired I created new ones, and updated them in the app (using the same path).

For some reason they do not seem to work, either the certificates are not loaded correctly, or something else, because the broker logs the following error:

1687175952: OpenSSL Error: error:04FFF06A:rsa routines:CRYPTO_internal:block type is not 01 1687175952: OpenSSL Error: error:04FFF072:rsa routines:CRYPTO_internal:padding check failed 1687175952: OpenSSL Error: error:0DFFF006:asn1 encoding routines:CRYPTO_internal:EVP lib 1687175952: OpenSSL Error: error:140360B2:SSL routines:ACCEPT_SR_CERT:no certificate returned 1687175952: Socket error on client , disconnecting.

Additionally, using mosquitto_sub or an alternative GUI such as MQTTx I have no issue connecting, something like the command shown below just works.

mosquitto_sub --cafile ca.crt --cert client.crt --key client.key -d -u USER -P t3cn4l1420A -h examplebroker.dev -p 8883 -t test --debug --insecure -d --tls-version tlsv1.2

ilgrank commented 1 year ago

The author is not actively maintaining the project anymore since years. I'm telling you just in case you expect a reply from him.