Can not connect to tunneling services with nRF9160

I am modifying the download sample from nRF SDK v2.6.1

I have been able to modify the download URL and download files off my own AWS S3 service. I have been trying to use tunelling services to host my own HTTP server as a starting point for a REST server.

I have tried ngrok and loophole. I've not been able to get the nRF9160 download sample to connect to either of these service. I have downloaded the certificate, placed it in the cert folder and added CONFIG_SAMPLE_CERT_FILE to prj.conf so it points to the certificate file and rebuilt.

I get error -111 (ECONNREFUSED from errno.h?). I have confirmed I can access the URL using a browser and curl.

Would I get error -111 for incorrect SSL configuration - e.g. wrong certificate provisioned. If so, is there any way to tell the difference between a socket not listening and and SSL error?

Is there anyway to get more logging/debugging from the SSL connection?

https://ngrok.com/

https://loophole.cloud/

Parents Reply Children
No Data
Related