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

nrf9160 custom device - nrfcloud cert connect failure

Hi,

I have a custom PCB with the nrf9610.  I have confirmed that https over LTE works fine.  I want to enable agps, so I need to get nrfcloud connected.

I made a new device certificate and instead of nrf-### I used tap-###

I got the json with the rootca, private key, and client cert.

I get connect error -8 (sorry I ran home before I got the exact error)

In any case, I also tried to use mosquitto_pub/_sub to test the ca/cert/key, but that failed as well, so obviously no agps data Disappointed

The certs are programmed manually using the AT* command set because on mac the nrfconnect lte monitor won't detect my cp2102 USB/Serial chip :(  even though it's serialized!  Anyways, story for a different day, but I verified that I have all 3 entries (ca,cert,key) under the proper ID #

Okay so I want to go step by step and figure out where I went wrong.  

1) Can you recommend a mosquitto_pub or _sub command with a -t 'topic_path' that I could use to test my certificates?  I just want to sanity check that my cert actually connects, but don't know the right topic to use.

2) Is there a good way to more detailed messages about where in the connect process things went wrong?  I worry that maybe the program can't retrive the keys from the modem or perhaps it's using a different set of keys besides the one in the modem.  Would be cool if there was a way to print out the certs during debug mode (however that sounds dangerous right? Slight smile

Parents Reply Children
Related