Closed gjt211 closed 5 years ago
Ok, after lots of playing and trying as many variations as possible, it is now working. In the end, I had to upload both the original self signed PEM root certificate and the CER converted one using the command line tool.
I have been trying to get a self-signed certificate to work but it will never connect. My scenario: Remote (bare metal) CentOS server running SSL secured Mosquitto with a self signed certificate. Additional non-SSL Mosquitto port created for testing. I can connect with the non-SSL port fine using
WiFiClient
. I can't connect to the SSL port usingWiFiSSLClient
.I have tried three options for uploading certificates.
My PEM certificate works OK from within other MQTT clients such as MqttFX.
I vaguely recall through my several days of searching that self signed certs don't work and something in some file need to be changed. (Sorry, something and some file is not helpful but I can't remember the file or location as I could not find it) I am using MacOS.
Any help appreciated.