Asymmetric Cryptography

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

nothing is matching

1 Like

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

1 Like

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!

3 Likes

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.

Hello,
I’m trying to change user to access Sally mails.
While trying to connect with the password “password” authentication is failling.
Any clue on how to manage this ?

1 Like

I am having the same issue with the password, did you figure out what the problem was?

Hello
Yes I wasn’t typing correctly the command.
I was missing a space between “su” and “-”

su - sally
it should work

Good evening all
I have issues assessing the ciphers.txt.file that is to be used to do my tasks on cryptography,any suggestions to what I can do

the answer is .genpkey. am i correct

1 Like

If it’s the one where u have to act as John and cybrary, I think it’s pkeyutl

Hello Guys,

I’m stuck with this lab.

When I decrypt the message I receive this following error:
Public key operation error: 0200006c:rsa routine data greater than mod len.

Following my steps:

run the script ./challenge.sh
su - sally
mail command
copy paste john encrypted message in file john-encrypted.enc
create private key with the command: openssl genpkey -algorithm rsa -out sallyprivate.key
decrypt john message with the command:
openssl pkeyutl -decrypt -inkey sallyprivate.key -in john-encrypted.enc -out decrypted-message.txt

Where am I doing wrong?

Thank you
All the best

Hello, I have solved! sallyprivate.key was the one of the previous exercise.
thank you!

1 Like