I want to use the MQTT protocol to connect to the AWS IOT MQTT broker. (BX FW version 2.6.3)
The broker requires that the connection uses a X.509 Certificates to authenticate. When creating a “thing” on the platform you are supplied with a:
- rootCA for AWS.
- Certificate (local)
- Private Key
Using commands : AT+KCERTSTORE=0, AT+KCERTSTORE=1 and AT+KPRIVKSTORE=0 I uploaded the 3 files to the BX3105. All command executed with OK and querying the certs: AT+KCERTSTORE? returns the information for the 2 Certs.
Querying the private key AT+KPRIVKSTORE? returns: +CME ERROR: 918
I then setup the the MQTT session with TLS active:
Connecting to the broker fails after about 3 seconds:
Using the MQTT protocol to connect to non-secure brokers works and publishing data is possible.
Is there something wrong with my certs or key?