Hello,
I am working with the nRF9160 to communicate via DTLS. It works, but managing certificates is a bit of a problem. I am using the AT%CMNG command.
First, certificates (type 1) cannot be read from the modem. This is annoying, since I do not have any private keys in the certificate (but I guess you could?).
The issue is - according to the manual (see https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fmob_termination_ctrl_status%2Fcmng_set.html), the command is supposed to give the SHA256 digest for the entity. In fact it does not. The place where that should be, it just repeatedly sends the byte representing the entity type:
at%cmng=1 %CMNG: 0,6,"0606060606060606060606060606060606060606060606060606060606060606" %CMNG: 111,0,"0000000000000000000000000000000000000000000000000000000000000000" %CMNG: 111,1,"0101010101010101010101010101010101010101010101010101010101010101" %CMNG: 111,2,"0202020202020202020202020202020202020202020202020202020202020202" %CMNG: 2000,4,"0404040404040404040404040404040404040404040404040404040404040404" OK
You can see it in other peoples' posts here as well, e.g.: https://devzone.nordicsemi.com/f/nordic-q-a/49766/at-cmng-1-reporting-error/198450
This is awkward, because there is no way to identify which private key or certificate is in which slot. Or am I missing anything? If this a bug, will there be a patch at any point? I am using modem FW 1.2.3, which is the most recent one.