Certificate-based authentication uses digital certificates issued by trusted authorities to confirm device identities. This prevents unauthorized devices from connecting.
openssl verify -CAfile ca.pem device_cert.pem
The command outputs 'device_cert.pem: OK' when the certificate is valid and trusted by the CA.
Option A enables TLS listener on port 8883, specifies CA and server certificates, and requires client certificates for authentication.
This error usually means the server cannot verify the device's certificate because it is not signed by a trusted CA or the CA is missing.
First, generate the key and CSR on the device, then get it signed by the CA, configure the server to trust the CA, and finally deploy the signed certificate to the device.
