MQTT Client unable to load certificates

0
We are trying to connect to AWS IoT Core and have added required certificates to resources folder and refering the same in MQTT subscribe java action but its not working as expected.   When tried from another client the setup works as expected.    Please find the logs below.   java.lang.NullPointerException: null     at mqttclient.impl.SslUtil.getSslSocketFactory(SslUtil.java:104)     at mqttclient.impl.MqttConnector$MqttConnection.<init>(MqttConnector.java:124)     at mqttclient.impl.MqttConnector.getMqttConnection(MqttConnector.java:53)     at mqttclient.impl.MqttConnector.subscribe(MqttConnector.java:29)     at mqttclient.actions.MqttSubscribe.executeAction(MqttSubscribe.java:57)     at mqttclient.actions.MqttSubscribe.executeAction(MqttSubscribe.java:18)
asked
1 answers
0

You need to

  1. Open your certificates file in any text editor.
  2. Copy all content of the file and paste it to the CA Certificate and Client Certificate fields. Certificates start with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----. Client keys typically start with -----BEGIN RSA PRIVATE KEY----- or -----BEGIN PKCS7-----.
  3. Add the Client Certificate Key and the Certificate password if one was set.
    • Currently supported certificate types are X.509 format (.crt.cer)
    • Currently supported key types are X.509 format (.pem.pkcs)

See https://docs.mendix.com/appstore/connectors/mqtt/

answered