I suspect there is a bug in the https_client sample. sdk-nrf/samples/net/https_client/src/main.c
The certificate seems to always be provisioned and
mismatch = modem_key_mgmt_cmp(TLS_SEC_TAG, MODEM_KEY_MGMT_CRED_TYPE_CA_CHAIN, cert,
sizeof(cert));
always fails. (main.c:84)
Unless I am missing something, should it not be strlen(cert):
mismatch = modem_key_mgmt_cmp(TLS_SEC_TAG, MODEM_KEY_MGMT_CRED_TYPE_CA_CHAIN, cert,
strlen(cert));
It seems to work again with that change.