I am using paho mqtt to send message with python3 on ubuntu 20.04. I am using ssl version 2
When i do :
client = mqtt.Client()
client.tls_set(ca_certs=CA_CERT, certfile=CLIENT_CERT, keyfile=CLIENT_KEY)
client.connect(HOST, 8883, 20)
I am getting this error:
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 823, in tls_set
context.load_cert_chain(certfile, keyfile)
ssl.SSLError: [SSL: EE_KEY_TOO_SMALL] ee key too small (_ssl.c:4046)
My private key is 1024 bits I can not change my client certificat.
Any workaround please ?