First of all, sorry for my ignorance, I'm new at cryptography. I'm trying to generate a public key for use with elliptic curves given the private key.
So, at the moment I have:
The curve I will be using
y^2 = x^3 - ax + b
(prime256v1)A
.pem
file with a private key.
The first question is, does the private key have to be random? I mean, can it be whatever I want?
When I use the OpenSSL command:
openssl ecparam -in private.pem -name prime256v1 -out public.pem
If I do a cat of public.pem
I get:
-----BEGIN EC PARAMETERS-----
BggqhkjOPQMBBw==
-----END EC PARAMETERS-----
But there is no public key.
The second question is, does anyone know what I'm doing wrong?
Thanks in advance.