Hi there,
I'm trying to use nrfutil generate package with an extern key pair generated with openSSL. I used opneSLL with prime256v1 curve, which correspond to secp256r1 curve, and got an private key in PEM format, same format that nrfutil gives. But then I tried to get the public key from the command :
nrfutil keys display --key pk --format code private_key.pem --out_file out_file.c
And the public key generated differs from the openSSL.
Also, when I try to use the pk and sk generated by nrfutil to verify any signed message (using this site) I always get invalid signature.
Anyone know why that happens?
The openSSL commands used to generate the key pair:
openssl ecparam -name prime256v1 -genkey -out private_key.pem
And code used to display pub and priv keys:
openssl ec -in private_key.pem -text -noout
Thanks in advance!
Luccas