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 pkspecifies that the public key (pk) should be displayed.--format codespecifies that the key should be displayed in the C code format.private.pemis the name of the file that contains the key.