Assignment 7
Assignment 7
CS302
Lab Assignment: 7
Name : Hetvi Modi
Roll no : U22CS074
This assignment is about exploring the OpenSSL library. Follow the below
instructions:
.exe file and install OpenSSL in the system. Open the command
Steps:
1. Generate a public and private key pair using
out file.enc
Note: In OpenSSL 3.0 and later, rsautl has been deprecated, and you should
use pkeyutl instead.
Task 2: Diffie-Hellman Key Exchange
Use OpenSSL to perform a Diffie-Hellman (DH) key exchange to securely
generate a shared secret between two parties.
Steps:
1. Generate DH parameters:
publicA.pem
5. Derive shared secret for Party B (using Party A’s public key):
Output :