Displaying keys

nRF Util

tags
nRF Util

You can run the nrfutil nrf5sdk-tools keys display to display a private (signing) or public (verification) key from a PEM file. To see the list of options, run the nrfutil nrf5sdk-tools keys display --help command.

For example, enter the following command to display a public key in code format from the key file ganerated in the previous section:

nrfutil nrf5sdk-tools keys display --key pk --format code private.pem

In this command:

  • --key pk specifies that the public key (pk) should be displayed.
  • --format code specifies that the key should be displayed in the C code format.
  • private.pem is the name of the file that contains the key.