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

aws_iot mqtt_connect error -95

Hi, i'm trying to load the aws_iot sample and I'm running into mqtt_connect, error: -95. Based on other posts, it seems my certificates might not be properly loaded. As far as I know, I followed the instructions here. I have a few questions, please confirm:

- when I copy the certificates (CA, client cert and private key), I don't include the header/footers like "---begin certificate---" and "--- end certificate---" 

- I don't need to add any config options to proj.conf, just need to modify the 3 mentioned 

CONFIG_AWS_IOT_CLIENT_ID_STATIC="nrf-352656..."

CONFIG_AWS_IOT_BROKER_HOST_NAME="a2m763..amazonaws.com"

CONFIG_AWS_IOT_SEC_TAG=12312312

- i don't need to change anything in Kconfig

- when I load "configs.c" in /aws_iot/build_..nrf9160ns/zephyr/misc/generated, the SEC_TAG is set to another tag I used previously. It doesn't seem to be updated. Also, the BROKER_HOST_NAME is set to 1. Are these concerning?

Thanks!

Related