Objectives

This helps you understand how to secure Email communication using PGP

Why do you need to know

Encryption protects the contents against unauthorized access. Digital signatures make sure that it is not modified and comes from a specific sender. Thus, it is essential to use digital signature for Email communication in order to avoid the content of the Email from being sniffed.

What is GPG?

GPG is encryption software for files and emails. It enables users to securely transport emails and files with the help of encryption and digital signatures.

Network Topology

Demo

1: Login Domain Controller

2:Create two folders on the desktop with names PGP keys and Public keys.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

3:Install Gpg4win (PNU Privacy Guard for Windows)

4: Launch the application.

5: GNU Privacy Assistant -Key Manager window appears. Click Keys and select new key.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

6:Generate key window appears. Enter user1 in your name and click Forward.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

7:Enter your first Email account ID in your Email Address and click Forward.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

8: Ensure that Create backup copy is selected and click Forward.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

9: Pin entry pop-up appears, enter your password and click ok

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

10: Backup key to file window appears, select the PGP keys folder on the Desktop and click Save

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

11:Pop-up appears and click Close

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

12: A newly created PGP signature appears in the Key manager window

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

13: Navigate to Public Keys folder on desktop and create a text document with name user1 public keys and open the text file.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

14: Switch back to GNU Privacy Assistant -Key Manager window and right-click user1 and select copy.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

15:Switch back to usr1 public keys text file and paste the copied public signature in text file and save it.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

16: Navigate to desktop, and right-click on the Public keys folder and click Properties.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

17: Click Sharing tab and Share.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

18:File sharing window appears, select Administrator and click Share. If a Network discovery and file sharing pop-up appears, select yes. Once completed, click Done.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

19: Login Client PC

20: Create two folders on the desktop with names PGP keys and Public keys

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

21: Install Gpg4win and open it.

22: GNU Privacy Assistant – Key Manager window appears. From Key tab, new key.

23: Type user2 in your name and click Forward.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

24: Enter your Email account ID and click Forward

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

25: Create backup copy is selected and click forward.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

26: Enter passphrase and click OK.

27:Backup key to file window appears. Select PGP keys folder on the Desktop and click save.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

28: Now access the Public keys shared folder from Domain Controller. To access DC shared folder, open a file explorer and type \\10.0.0.101 (DC IP address)

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

29: Shared folders appears, navigate to \\10.0.0.101\Users\Administrator\Desktop\Public Keys and copy the user1 public keys.txt and paste it on the desktop.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

30: Switch back to GNU privacy assistant -Key manager window, click Import from the menu bar.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

31: Navigate Desktop and select user1 public keys.txt and open

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

32: Now user1 key is added to the Key Manager

33: click Clipboard from the menu bar. Type some data like screenshot.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

34: Click on Sign icon from the menu. Select user2 and ok.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

35: Type passphrase of user2 and ok.

36: You can see the PGP signature is embedded with the content appears at the bottom of the message in encrypted form.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

37: Click on Encrypt icon and select user1 and click ok.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

38: Now you can see that message you have entered in the Clipboard has encrypted as shown. Select all and copy.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

39: Now create a new document on desktop, paste the copied content from the clipboard and save the text document, and name it as Encrypted Text.

In this text document the message you have entered is encrypted, you cannot see that message. Close the text file and copy it.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

40: Now open a file explorer and type \\10.0.0.101\Users\Administrator\Desktop\Public Keys and paste the copied Encrypted Text.txt

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

41: Switch back to Domain Controller

42:Open public keys folder on desktop and you can see Encrypted Text file. Copy the content.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

43: maximize the GNU Privacy Assistant -key manager and click Clipboard. paste the copied content from Encrypted Text.txt

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

44: we are going to decrypt the encrypted content. Click Decrypt from the menu and type user1 passphrase.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

45: Now you can see the decrypt content with user2 PGP signature as shown in the screenshot. Therefore, you can send the encrypted messages using PGP signatures.

This image has an empty alt attribute; its file name is Basic_network_admin_and_troubleshooting_using_Windows_command_line_-_Authentic_friendship_in_Japan.png

Conclusion

You learned how to secure Email communication using PGP.