Prof. Alessandro Armando

View on GitHub

GPG Hands-on: The Expedition of the Thousand

You are Camillo Benso (Count of Cavour):

Note: After importing the private key you must tell GPG that you trust these keys. After all, since here you are impersonating the Count of Cavour, these are your keys. Use the gpg --edit-key command and set the trust for this key to ultimate.

You receive the following three messages apparently from Gen. Garibaldi:

You realize you need Gen. Garibaldi’s public key.

You ask your agents to find it.

After some time an agent comes back to you with

Question 1: Assuming this is Garibaldi’s public key, where the expedition will sail from?

A few hours later two agents bring to you the following additional keys:

You import them into you key ring.

At this point you start being suspicious and ask the agents to provide evidence that these keys belong to Gen. Garibaldi.

Some time later an agent comes back with

ED8B6D50AF8AA4542CC05D07B25AAD1106246D76

claiming to be the fingerprint of the actual Garibaldi’s public key.

Question 2: Assuming this is the fingerprint of Garibaldi’s public key, where the expedition will sail from?

You are still unconvinced and thus decide to give a closer look to the public keys brought to you by the agents.

You recall you met Mazzini last week. You pull his business card from the pocket and you find his public key fingerprint printed on it:

260F498B4E3F72EF9AE273518B7C2EF6CFEBA5A0

You trust Mazzini to properly validate the keys that he signs.

Question 3: Where the expedition will sail from?

Answers