How to solve these challenges:
Write your solution in the terminal and test it.
If your solution is not correct, then try to understand the error messages, watch the video again, rewrite the solution and test it again. Repeat this step until you get the correct solution.
Compare your solution to the provided one.
Save the solution in a file for future reference or recap.
Challenge #1
Using gpg encrypt this file symmetrically. The encrypted file should be an ASCII one. Then remove the clear-text file overwriting it first 100 times (use shred command).
Are you stuck? Do you want to see the solution for this exercise? Click here.
Challenge #2
Using gpg decrypt the file from Challenge #1 in a new file called oscar_wilde.txt
Are you stuck? Do you want to see the solution for this exercise? Click here.
Challenge #3
Consider this symmetrically encrypted file. Using gpg decrypt the file to an output file called earth.jpg if the password is berlin
Are you stuck? Do you want to see the solution for this exercise? Click here.
Challenge #4
Generate a gpg key pair.
Are you stuck? Do you want to see the solution for this exercise? Click here.
Challenge #5
List the long ID of both the private and the public key generated at Challenge #4.
Are you stuck? Do you want to see the solution for this exercise? Click here.
Challenge #6
Export the private key to an ascii file called private_key.asc and the public key to an ascii file called public_key.pub
Are you stuck? Do you want to see the solution for this exercise? Click here.
Challenge #7
Publish the public key generated at the Challenge #4 on the pgp.mit.edu key server.
Are you stuck? Do you want to see the solution for this exercise? Click here.
Challenge #8
Publish the public key generated at the Challenge #4 on the pgp.mit.edu key server.
Are you stuck? Do you want to see the solution for this exercise? Click here.
Challenge #9
Import into your gpg keyring the public key with the ID DEBDE07EC6BB4863 from pgp.mit.edu
Then list the gpg keyring.
Are you stuck? Do you want to see the solution for this exercise? Click here.
Challenge #10
Consider this asymmetrically encrypted file. Import this private key into your gpg keyring and then decrypt the file.
Are you stuck? Do you want to see the solution for this exercise? Click here.
Challenge #11
Before installing Apache 2.4.43 you want to check the integrity of the source archive using its digital signature.
The signing key id is: B9E8213AEFB861AF35A41F2C995E35221AD84DFF
How can you accomplish that?
Note: you can download the required files from the official website or from the links above.
The public signing key can be imported from a key server.
Official website: https://httpd.apache.org/download.cgi
Are you stuck? Do you want to see the solution for this exercise? Click here.
Challenge #12
Sign this file (using the private key generated at Challenge #4). The digital signature should be of type ascii (text).
Are you stuck? Do you want to see the solution for this exercise? Click here.