Closed Wonderjack996 closed 10 months ago
I'm not seeing any error being returned by OpenSSL when I tried your cert in my environment. Perhaps this is an issue with the options configured for your OpenSSL library, or an issue related to OpenSSL version ? This seems most likely as the error is being returned by OpenSSL.
By the way, were you intending to use the -a or the -t option ?
Thank you so much. Now I've undestand the difference between the two option. My problem was related to the fact that i was not passing the correct server certificate to obuspa. I've removed the private key from the comment for much security.
Hi. I'm trying to connect to an MQTT broker hosted on port 8883, that need SSL for connection. I've specified the broker address, username and password in mqtt factory reset file, specifying as TransportProtocol TLS. I've also create a self signed certificate file, containing also the private key, passed with the -a option. I got the error LoadClientCert: SSL_CTX_use_certificate() failed, and don't know why. Any ideas? Thanks. Here my certificate (the private key is only a test): -----BEGIN CERTIFICATE---- ... -----END CERTIFICATE----- -----BEGIN RSA PRIVATE KEY----- ..... -----END RSA PRIVATE KEY-----