Dear All
Try to run the demo, with the link Configuring the MQTT Broker Connection , Option1, and stuck in Step 3, #democonfigROOT_CA_PEM, not sure how to get a certificate and paste here, sorry I am new to certificate, please advise on how to get one.
Hi @Ping
As mentioned in the link you need to set the constant #democonfigROOT_CA_PEM (the server’s root CA certificate) to the PEM certificate linked to from the main https://test.mosquitto.org page.
It works now, i downloaded the certificate, but didn’t know how to open it. For generate my own - (to use with MQTT Explorer), I generate client.key successfully, but when generate CSR using “openssl req -out client.csr -key client.key -new”, it gives me an error:
“Can’t open Z:/extlib/openssl111_/ssl/openssl.cnf for reading, No such file or directory
20324:error:02001003:system library:fopen:No such process:crypto/bio/bss_file.c:69:fopen(‘Z:/extlib/openssl111_/ssl/openssl.cnf’,‘r’)
20324:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76:”
Any idea what I have done wrong please?
Regards!
Ping