1 # GPG Configuration on Windows for Secure Mail
2 **Beginning** | *step 1 of 5* | [[Next|gpg2]]
6 1. Download GNU Privacy Guard
7 * Do "Right-click, Save As..." this file: [[gnupg.exe|ftp://ftp.gnupg.org/gcrypt/binary/gnupg-w32cli-1.4.11.exe]]
8 * *tip:* If you want to read more about GPG see the [[GPG homepage|http://www.gnupg.org/]]
9 1. Open (Run) that file to install GPG
10 1. Download this GPG helper file (This makes it easier to run GPG)
11 * Do "Right-click, Save As..." this file: <a href="../gpg.bat">gpg.bat</a>
12 * Save it to (or move it to) your HOME directory. If your username
13 is **foo** then your HOME directory is **C:\Users\foo**
14 1. You can now open a command window
15 * *Start | All Programs | Accessories | Command Prompt*
16 * list the contents of your HOME directory with **dir** (see screenshot below)
17 * You can make sure that gpg is installed (and the helper batch file works) by typing **gpg --version**
18 1. Create a new GPG configuration directory
19 * This directory should be **C:\Users\foo\AppData\Roaming\gnupg**
20 * You can create it using *Start | All Programs | Accessories | Windows Explorer*
21 * Alternatively you can do this in the command window:
22 * <code>C:\Users\foo> <b>mkdir AppData</b>
23 * C:\Users\foo> <b>cd AppData</b>
24 * C:\Users\foo\AppData> <b>mkdir Roaming</b>
25 * C:\Users\foo\AppData> <b>cd Roaming</b>
26 * C:\Users\foo\AppData\Roaming> <b>mkdir gnupg</b></code>
27 1. Download this GPG configuration file (insures a strong key will be created)
28 * Do "Right-click, Save As..." this file: <a href="../gpg.conf">gpg.conf</a>
29 * Save it to (or move it to) your GPG configuration directory you just created.
30 * It should be located at **C:\Users\foo\AppData\Roaming\gnupg\gpg.conf**
31 * If you want to know why this configuration is important please
32 see [[OpenPGP for Debian|http://www.debian-administration.org/users/dkg/weblog/48]]
33 1. Go back to your HOME directory
34 * C:\Users\foo\AppData\Roaming> <b>cd \Users\foo</b></code>
36 1. Proceed to the [[Next|gpg2]] step
38 [[!img gpg1.png align=left]]