nRF Cloud provisioning stuck - Server Certificate failed, Client Certificate pending

Device UUID: 50343959-3733-433f-80d9-161fa7776bfc

IMEI: 359404230238199

Hardware: Thingy:91X with nRF9151, modem firmware mfw_nrf91x1_2.0.4

Issue: Device provisioning is stuck in an invalid state. The provisioning sequence shows:

  • Cloud Access Key Generation: Succeeded
  • Server Certificate: Failed
  • Client Certificate: Pending (never completes)

When running the nrf_provisioning sample, we get:

<err> nrf_provisioning_http: Bad request
<err> nrf_provisioning: Invalid exchange

We manually wrote the Amazon Root CA 1 to sec_tag 16842753 via AT command, but the provisioning service still returns "Bad request" and won't proceed.

Request: Please reset the provisioning state for this device on the nRF Cloud backend so we can start fresh.

  • You can also get attestation token when running nrf_provisioning sample. Just enter command nrf_provisioning token to serial terminal.

    Have you tried to use the REST API to unclaim the device? This will delete all provisioning related states and commands from the server. Below is an example for linux. You need to add the nRFCloud API_KEY from your User Account (Don't expose the key here)

    export API_HOST=https://api.provisioning.nrfcloud.com
    export DEV_UUID=50343959-3733-433f-80d9-161fa7776bfc
    export API_KEY=
    
    curl -X DELETE $API_HOST/v1/claimed-devices/$DEV_UUID -H "Authorization: Bearer $API_KEY"
    

    Link to the API document https://api.provisioning.nrfcloud.com/v1/

    BR,

    Juha

Related