This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MQTT integration with Losant IoT

Good afternoon,

First of all, I hope that you are all well and are able to work from home, regardless of the government instructions of your country of residence.

My question is related to an experiment we are currently running using the Losant IoT platform (https://app.losant.com) and several Nordic Thingy:52 kits.

We have already managed to connect a kit to Losant using a Raspberry Pi3 as a gateway. However, it is important to our experiment to connect a different kit to Losant IoT using a different method, namely an MQTT integration.

In order to achieve an MQTT integration with Losant, which we have successfully achieved using other sensors from other brands, Losant requires the following data (also including our current inputs):


MQTT
a2n7tk1kp18wix-ats.iot.us-east-1.amazonaws.com

PORT
8883

CLIENT ID
prod-4c2698a1-2597-4760-82d1-7ecf1be56d18-account

AUTHENTICATION

Private Key
-----BEGIN RSA PRIVATE KEY-----{Private key}-----END RSA PRIVATE KEY-----

Certificate
-----BEGIN CERTIFICATE-----{Certificate}-----END CERTIFICATE-----

TOPICS

prod/4c2698a1-2597-4760-82d1-7ecf1be56d18/a/gateways
prod/4c2698a1-2597-4760-82d1-7ecf1be56d18/a/connections
prod/4c2698a1-2597-4760-82d1-7ecf1be56d18/a/alerts
prod/4c2698a1-2597-4760-82d1-7ecf1be56d18/a/alerts/notifications
prod/4c2698a1-2597-4760-82d1-7ecf1be56d18/m/

CA CERTIFICATE

-----BEGIN CERTIFICATE-----{CA Certificate}-----END CERTIFICATE-----

Even though we succesfully connected the kit to nrfcloud using an iOS device as gateway and are able to follow the MQTT documentation instruction to obtain the above data for our inputs (I have attached the JSON response to the POST API call to certificate as described in the MQTT documentation, as well as the certificate downloaded from nrfcloud), when using this data in Losant IoT we keep receiving the following error message:

Failed to create integration!
Invalid openssl exit code: 1 % openssl x509 -noout -nameopt RFC2253,sep_multiline,space_eq,-esc_msb,utf8 -text -in /tmp/3a40d58688868c30f5e7e2bea98a5119ab6df832 unable to load certificate 140522648251720:error:0909006C:PEM routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE

Can you provide any help or guidance in order to get past this step? What could be going wrong? Did we miss any steps?

Thank you in advance, stay safe!

Parents Reply Children
No Data
Related