Exercise 1 - RSA key generation

Task 1

Screenshot 2024-09-30 at 11.03.29 AM.png

Task 2

Screenshot 2024-09-30 at 11.04.16 AM.png

Task 3

openssl rsa -in myrsa-enc-kypair.pem -text -noout

Yes, I do need to provide a passphrase. The private key file myrsa-enc-kypair.pem was encrypted using the AES-256-CBC algorithm. If we need to decrypt and show the key in plain text format, OpenSSL would need the correct password decrypt the encrypted private key.

Task 4

Screenshot 2024-09-30 at 11.19.34 AM.png

Yes, I do need to provide passphrase to retrieve the public key.

Exercise 2 - Encryption using RSA

Task 1

Screenshot 2024-09-30 at 12.08.22 PM.png

Task 2

Screenshot 2024-10-02 at 12.34.55 AM.png

Task 3