We are running the SLM application (build with native TLS overlay) on the nRF9160 DK with modem firmware version mfw_nrf9160_1.3.1.
Please take notice I tried the HTTPS client sample earlier and it worked well.
The root CA is set with the AT#XCMNG command at sectag 10.
AT#XHTTPCCON=1,"example.com",443,10
returned ERROR
RTT log shows the following:
00> [00:00:00.445,953] <dbg> nrf_modem: _nrf_modem_lib_init: Modem library has initialized, ret 0 00> [00:00:00.445,983] <dbg> nrf_modem: _nrf_modem_lib_init: Modem init callback: 0x5c0fb 00> [00:00:00.447,082] <dbg> nrf_modem: _nrf_modem_lib_init: Modem init callback: 0x3bea5 00> [00:00:00.447,113] <dbg> nrf_modem: _nrf_modem_lib_init: Modem init callback: 0x21e71 00> [00:00:00.447,113] <dbg> nrf_modem: _nrf_modem_lib_init: Modem init callback: 0x5bb27 00> [00:00:00.447,235] <inf> nrf_modem_lib_trace: Trace thread ready 00> [00:00:00.448,547] <inf> nrf_modem_lib_trace: Trace level override: 2 00> [00:00:00.452,087] <dbg> net_core: net_init: (0x20015108): Priority 90 00> [00:00:00.452,117] <dbg> net_core: l3_init: (0x20015108): Network L3 init done 00> [00:00:00.452,117] <dbg> net_if: net_if_init: (0x20015108): 00> [00:00:00.452,148] <dbg> net_if: init_iface: (0x20015108): On iface 0x200127cc 00> [00:00:00.452,178] <dbg> net_if: net_if_post08): 00> 00> [00:02:29.603,149] <wrn> modem_key_mgmt: Key not found 00> [00:02:29.604,644] <wrn> modem_key_mgmt: Key not found 00> [00:02:29.604,827] <dbg> net_sock_tls: tls_alloc: (0x200151d8): Allocated TLS context, 0x200158d4 00> [00:02:30.028,503] <err> slm_httpc: connect() failed: -22 00> [00:02:30.028,564] <dbg> net_sock: z_impl_zsock_close: (0x200151d8): close: ctx=0x200158d4, fd=0 00> [00:02:30.028,686] <dbg> net_sock: z_impl_zsock_close: (0x200151d8): close: ctx=0x20016468, fd=1
connect failed with error 22: EINVAL, Invalid argument.
What to do?
