This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha

I've used the nrf_inbuilt_key_write to store certificates/keys in the past, but I am still unable to do it using the "AT%CMNG" modem command.

I can list and delete items using "AT%CMNG=1" and "AT%CMNG=3,x,x", but every attempt to write with "AT%CMNG=0,x,x,"xxx"" seems to hang forever.

Our device is providing access to a modem console for factory provisioning and debug, so it would be nice to not have to implement a special method when this should be able to handle it, but I just can't get it to work.

Is this expected to be working in mfw_nrf9160_0.7.0-29.alpha?

Parents
  • I have the feeling that the %CMNG write command is very unforgiving of certificate bodies that don't match the expected formatting, and it is hanging forever waiting to see a certain pattern it expects...  But I can't for the life of me figure out what the pattern should be.  The certificate files I'm using are accepted just fine by the nrf_inbuilt_key_write function...

    (EDIT: This was definitely not the issue as the CMNG write command stores anything you send w/o doing any validation if things are working properly.  Further down in the thread I stored "HONKHONK" as a CA certificate.)

Reply
  • I have the feeling that the %CMNG write command is very unforgiving of certificate bodies that don't match the expected formatting, and it is hanging forever waiting to see a certain pattern it expects...  But I can't for the life of me figure out what the pattern should be.  The certificate files I'm using are accepted just fine by the nrf_inbuilt_key_write function...

    (EDIT: This was definitely not the issue as the CMNG write command stores anything you send w/o doing any validation if things are working properly.  Further down in the thread I stored "HONKHONK" as a CA certificate.)

Children
No Data
Related