This shows you the differences between two versions of the page.
ac:laboratoare:04 [2022/10/27 15:47] marios.choudary [Exercise 1: Diffie Hellman (8p + 2p)] |
ac:laboratoare:04 [2022/10/27 15:58] (current) marios.choudary |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Lab 04 - Public Key Encryption ===== | ===== Lab 04 - Public Key Encryption ===== | ||
- | Before starting the labs, download openssl 1.1.0 from [[https://www.openssl.org/source/openssl-1.1.0c.tar.gz|here]]. | + | Before starting the labs, download openssl 1.1.1 from [[https://www.openssl.org/source/openssl-1.1.1q.tar.gz|here]]. |
Save the file to some local folder accessible by you, then compile it and install it to some folder. | Save the file to some local folder accessible by you, then compile it and install it to some folder. | ||
Open the unpacked folder from bash, and run the following commands: | Open the unpacked folder from bash, and run the following commands: | ||
Line 121: | Line 121: | ||
</note> | </note> | ||
- | The client and server have a similar structure. Each of them should build a public key, then send it to the other party, receive the public key from the other party and finally compute the secret key. Your task is to complete the missing parts. For this, consult the openssl documentation [[https://www.openssl.org/docs/man1.0.2/man3/dh.html|here]] or [[https://www.openssl.org/docs/man1.1.1/man1/openssl.html|here]]. Since the client and server are similar, focus only on one of them and then do similarly on the other one. | + | The client and server have a similar structure. Each of them should build a public key, then send it to the other party, receive the public key from the other party and finally compute the secret key. Your task is to complete the missing parts. For this, consult the openssl documentation [[https://www.openssl.org/docs/man1.1.1/man3/|here]]. Since the client and server are similar, focus only on one of them and then do similarly on the other one. |
The makefile should help you build both. Just type 'make all'. | The makefile should help you build both. Just type 'make all'. |