-1
$\begingroup$

While trying to convert private key into public key i get this error message.

I used "openssl genrsa -des3 -out private.key 4096" to generate the private key and used "openssl -in private.key -pubout -out public.key" to generate the public key.

what went wrong,why do I get this error

$\endgroup$
0
3
$\begingroup$

This happened because openssl tool syntax requires a command name as the first parameter. In your case it should be

openssl rsa -in private.key -pubout -out publickey.out

Notice the rsa command name.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.