Iss Homework Period Max of Students: Openssl 2 Weeks From 5/15/2021 1 Student
Iss Homework Period Max of Students: Openssl 2 Weeks From 5/15/2021 1 Student
Iss Homework Period Max of Students: Openssl 2 Weeks From 5/15/2021 1 Student
You will use OpenSSL to handle some basic symmetric and asymmetric
functions.
1. Create a text file called "message.txt" containing the full name, ID
1
2
You will create a Certification Authority (CA) and two MIME clients.
You need first to create a subfolder called "newcerts", a text file called
"serial.txt" containing the text "01" and an empty text file called
“index.txt".
9. Write a command line in a batch file called
"Generate_CAKeys.bat" to generate the public/private key pair of
the email Certification Authority (MIME CA) in PEM format.
Run the command and save the result in a file called "ca.key".
10. Write a command line in a batch file called "Create_CACert.bat"
to create the auto-signed certificate of the CA in PEM format using
the configuration file "openssl.txt" provided with the assignment.
Run the command and save the result in a file called "ca.pem".
11. Write a command line in a batch file called
"Visualize_CACert.bat" to create a readable version out of
"ca.pem" to visualise the content of the auto- signed certificate of
the CA. Run the command and save the result in a file called
"ca_cert.txt".
12. Write the needed command lines in a batch file called
"Generate_ClientKeys.bat" to generate the public/private key
pairs for two email clients (MIME clients) "C1" and "C2" in
PEM format. Run the commands and save the results in two files
called "C1.key" and "C2.key" respectively.
13. Write the needed command lines in a batch file called
"Generate_ClientRequests.bat" to generate a certificate request for
each client using the configuration file "openssl.txt" provided
with the assignment. Run the commands and save the results in
two files called "C1.crs" and "C2.crs" respectively.
14. The certificate requests should be sent to the CA to be signed,
which should
generate the client certificates. Taking the role of the CA, write
the needed command lines in a batch file called
"Sign_ClientRequests.bat" to sign the requests "C1.crs" and
"C2.crs" of the two MIME clients, in order to generate their
respective identity certificates. Run the commands and save the
results in two files called "Signed_C1_CRS.ca" and
"Signed_C2_CRS.ca" respectively.
3
Client “C2” will receive the encrypted and signed message sent by client
“C1”. He/she will receive the encrypted message text "message.enc",
the encrypted password "pwd.enc" and the message signature
"message.sig". Client “C2” will decrypt and verify the received message.
20. Use the command "smime" to write a command line in a batch
file called "Decrypt_Pwd.bat" to decrypt the encrypted password
"pwd.enc" using the private key of client “C2”. Run the command
and save the result in a file called "pwd_dec.txt".
21. Write a command line in a batch file called "Decrypt_AES.bat" to
decrypt the
Encrypted message "message.enc" using the password stored in
the file "pwd_dec.txt" and the AES algorithm. Run the command
and save the result in a file called "message_dec.txt".
22. Write a command line in a batch file called
"Generate_HashC2.bat" to
4
19. ca.pem
20. Visualize_CACert.bat
21. ca_cert.txt
22. Generate_ClientKeys.bat
23. C1.key
24. C2.key
25. Generate_ClientRequests.bat
26. C1.crs
27. C2.crs
28. Sign_ClientRequests.bat
29. Signed_C1_CRS.ca
30. Signed_C2_CRS.ca
31. pwd.txt
32. Encrypt_AES.bat
33. message.enc
34. Encrypt_pwd.bat
35. pwd.enc
36. Generate_HashC1.bat
37. Message_hash.txt
38. Sign_Message.bat
39. message.sig
40. Decrypt_Pwd.bat
41. pwd_dec.txt
42. Decrypt_AES.bat
43. Message_dec.txt
44. Generate_HashC2.bat
45. Message_dec_hash.txt
46. Verify_Message.bat
47. Message_verify_hash.txt
48. Mail_Security.doc
Good Luck
AA
6