NRF9160 https_client does not connect to example.com

1. am currently using the nrf9161_dk. and have not modified the modem FW in anyway. 

2. I am using the vscode extension provided by nordic to build/run this sample

        a, i am using version v2.4.1 for the SDK

3. this is my build config.  with this configuration  get the err 111 which when i look it up means   #define ECONNREFUSED 111   /* Connection refused */

this is the output:

*** Booting Zephyr OS build v3.3.99-ncs1-2 ***
HTTPS client sample started
Certificate mismatch
Provisioning certificate
Waiting for network.. PDP context 0 activated
OK
Looking up example.com
Resolved 93.184.216.34 (AF_INET)
Connecting to example.com:443
connect() failed, err: 111
PDP context 0 network detached

So then i tried adding mbed tools as well: 

build config with mbed tool: 

and i get this errno 22 #define  EINVAL 22   /* Invalid argument */ 

So then i has a thingy91 and decided to test that dev kit out, i uploaded that modem with mfw_nrf9160_1.3.5.zip  and i am running the exact same configurations and i am getting the same errors. 
does anyone have any ideas of what might be happening here and why the sample is not working, any input is appreciated. 
thanks, 
Parents
  • Hi,

    Could you please test the same sample in NCS v2.6.0? Do you get the same errors?

    Best regards,
    Dejan

  • hello, i updated the SDK to v2.6.0 and the toolchain is also at v2.6.0. now i am getting deprecation warnings like 'lte_lc_init_and_connect' is deprecated. i can still run the  example, another difference now is that if i only add the ipv4.conf i get the same 111 error, but if i add the mbed.conf file, i get the following errors C:/ncs/v2.6.0/nrf/ext/oberon/psa/core/library/check_crypto_config.h:106:2: error: #error "PSA_WANT_ALG_RSA_PKCS1V15_CRYPT defined, but not all prerequisites"
    106 | #error "PSA_WANT_ALG_RSA_PKCS1V15_CRYPT defined, but not all prerequisites"
    | ^~~~~
    C:/ncs/v2.6.0/nrf/ext/oberon/psa/core/library/check_crypto_config.h:112:2: error: #error "PSA_WANT_ALG_RSA_PKCS1V15_SIGN defined, but not all prerequisites"
    112 | #error "PSA_WANT_ALG_RSA_PKCS1V15_SIGN defined, but not all prerequisites"

    so it seems that v2.6.0 does not work either

Reply
  • hello, i updated the SDK to v2.6.0 and the toolchain is also at v2.6.0. now i am getting deprecation warnings like 'lte_lc_init_and_connect' is deprecated. i can still run the  example, another difference now is that if i only add the ipv4.conf i get the same 111 error, but if i add the mbed.conf file, i get the following errors C:/ncs/v2.6.0/nrf/ext/oberon/psa/core/library/check_crypto_config.h:106:2: error: #error "PSA_WANT_ALG_RSA_PKCS1V15_CRYPT defined, but not all prerequisites"
    106 | #error "PSA_WANT_ALG_RSA_PKCS1V15_CRYPT defined, but not all prerequisites"
    | ^~~~~
    C:/ncs/v2.6.0/nrf/ext/oberon/psa/core/library/check_crypto_config.h:112:2: error: #error "PSA_WANT_ALG_RSA_PKCS1V15_SIGN defined, but not all prerequisites"
    112 | #error "PSA_WANT_ALG_RSA_PKCS1V15_SIGN defined, but not all prerequisites"

    so it seems that v2.6.0 does not work either

Children
No Data
Related