nrf9160

Set command

The set command requests an attestation token.

The response contains a device identity attestation message including the device type, device UUID, and COSE authentication metadata joined by a dot "." and coded to Base64url format.

Syntax:

%ATTESTTOKEN=[<challenge>]

Response syntax:

%ATTESTTOKEN: <response>

The set command parameters and their defined values are the following:

<challenge>
Optional.
32-character string in hexadecimal format.
If present, <challenge> is included in the device identity attestation message instead of device-generated nonce.
<response>
Device identity attestation message and COSE_Sign1 signature as Base64Url encoded strings separated by a dot '.':
"Base64Url(Attestation message).Base64Url(Cose_Sign1)"

The following command example requests an attestation token:

AT%ATTESTTOKEN
%ATTESTTOKEN: "9aiUFOq7SOwtdPfEgdkPxV_vTYLoGeE0-gzV2e5c.jUfK3OpdVBVYWnso-aOjIZcSTAwdqQQJWrrY2Lnc"
OK

The following command example requests an attestation token with input challenge:

AT%ATTESTTOKEN="90115c20ac3f381b520b43c76bd5d99c"
%ATTESTTOKEN: "ksjdfEjAgfgdgfg.fghgehhgSyrlaskj"
OK