Asymmetric Cryptography

What is the name of the OpenSSL subcommand used to generate a public key?

nothing is matching

Having the same problem thought it was -pubout

Yeah, but -pubout is not matching, any other answer you know?

The question should be " What is the name of the OpenSSL subcommand used to generate a PRIVATE key?"

The answer matches private key not public key.

I will correct the question.

Thanks, it worked with the private key command

Yeah got it thank you

I also noticed there was an error with the instructions on line 21: “openssl pkeyutil -decrypt -inkey sallyprivate.key -in message.enc -out message.txt”

the “pkeyutil” should read “pkeyutl” without the “i”. Thanks!

1 Like

I have made this fix to the lab. Thank you for pointing it out!

1 Like

Hi, I’m still having issues regarding some of the commands are still appearing with the “i” on the pkeyutil.
openssl pkeyutil -encrypt -inkey [public].key -pubin -in [filename].txt -out [filename].enc

and when I try to decrypt Sally e-mail with openssl pkeyutl -decrypt -inkey sallyprivate.key -in message.enc -out message.txt i’m getting an error:

Public Key Operation error 40378115EC7F0000: error:0200009F:rsa routines:RSA_padding_check:PKCS1_type_2:pkcs decoding error:…/crypto/rsa/rsa_pk1.c:269

I found all the commands with the errant “i” and removed the “i”.

What is the flag discovered in the Application layer data returned by the web server? Do not include any spaces in your answer.