~ubuntu-branches/ubuntu/precise/evolution/precise

« back to all changes in this revision

Viewing changes to help/oc/mail-encryption-gpg-create-key.page

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-08-18 11:10:01 UTC
  • mfrom: (1.1.83 upstream)
  • Revision ID: james.westby@ubuntu.com-20110818111001-559uzyuqsoyj7xjg
Tags: 3.1.5-0ubuntu1
* New upstream release.
* debian/control: bump e-d-s Build-Depends to 3.1.5.
* debian/patches/03_lpi.patch: refreshed.
* debian/patches/11_remove_upstream_submit_bugreport.patch: refreshed.
* debian/patches/bogofilter_init_903b8e6.patch,
  debian/patches/evo_fbee43e_to_f4505a2.patch,
  debian/patches/spamassassin_init_4fc04af.patch: dropped, included upstream.
* debian/patches/spamd_sbin_path.patch: correct the path to spamd as
  /usr/sbin/spamd, which is the correct path in Ubuntu. (LP: #828693)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" id="mail-encryption-gpg-create-key" xml:lang="oc">
 
3
 
 
4
  <info>
 
5
    <desc>Signing or encrypting messages via GPG that you send.</desc>
 
6
 
 
7
    <link type="guide" xref="mail-encryption#gpg"/>
 
8
 
 
9
    <revision pkgversion="2.32.1" version="0.2" date="2011-07-27" status="final"/>
 
10
    <credit type="author">
 
11
      <name>Andre Klapper</name>
 
12
      <email>ak-47@gmx.net</email>
 
13
    </credit>
 
14
    <credit type="author">
 
15
      <name>Novell, Inc</name> <!-- Content partially from http://library.gnome.org/users/evolution/2.32/encryption.html.en#encryption-keygen -->
 
16
    </credit>
 
17
    <license>
 
18
      <p>Creative Commons Share Alike 3.0</p>
 
19
    </license>
 
20
 
 
21
  </info>
 
22
 
 
23
  <title>Creating a GPG key</title>
 
24
 
 
25
<note>These steps are very technical. For average users we nowadays recommend using the Seahorse application for managing GPG keys.</note>
 
26
<!-- TODO:POST-3-2: Update and rewrite using Seahorse. Needs a complete rewrite once https://bugzilla.gnome.org/show_bug.cgi?id=508744 is fixed. -->
 
27
 
 
28
<p>Before you can get or send GPG encrypted mail, you need to generate your public and private keys with GPG.</p>
 
29
<steps>
 
30
<item><p>Open a terminal window and enter <code>gpg --gen-key</code>.</p></item>
 
31
<item><p>Select an algorithm, then press Enter.</p></item>
 
32
<item><p>Select a key length, then press Enter.</p></item>
 
33
<item><p>Enter how long your key should be valid for.</p></item>
 
34
<item><p>Type your real name, then press Enter.</p></item>
 
35
<item><p>Type your email address, then press Enter.</p></item>
 
36
<item><p>(Optional) Type a comment, then press Enter.</p></item>
 
37
<item><p>Review your selected user ID. If it is correct, press O.</p></item>
 
38
<item><p>Type a passphrase, then press Enter.</p></item>
 
39
<item><p>Move your mouse randomly to generate the keys.</p></item>
 
40
</steps>
 
41
 
 
42
<p>After the keys are generated, you can view your key information by entering <code>gpg --list-keys</code>. You should see something similar to this:  <code> /home/you/.gnupg/pubring.gpg ----------------------------  pub 1024D/32j38dk2 2001-06-20 you &lt;you@example.com&gt;  sub 1024g/289sklj3 2011-06-20 [expires: 2012-11-14]</code></p>
 
43
<p>GPG creates one list, or keyring, for your public keys and one for your private keys. All the public keys you know are stored in the file <file>~/.gnupg/pubring.gpg</file>. If you want to give other people your key, send them that file.</p>
 
44
<p>If you want, you can upload your keys to a key server:</p>
 
45
<steps>
 
46
<item><p>Check your public key ID with <code>gpg --list-keys</code>. It is the string after <code>1024D</code> on the line beginning with <code>pub</code>. In the example above, it is <code>32j38dk2</code>.</p></item>
 
47
<item><p>Enter the command <code>gpg --send-keys --keyserver wwwkeys.pgp.net <varname>32j38dk2</varname></code>. Substitute your key ID for <quote>32j38dk2</quote>. You need your password to do this.</p></item>
 
48
</steps>
 
49
 
 
50
<p>Key servers store your public keys for you so that your friends can decrypt your messages. If you choose not to use a key server, you can manually send your public key, include it in your signature file, or put it on your own Web page. However, it is easier to publish a key once, and then let people download it from a central place when they want.</p>
 
51
<p>If you don't have a key to unlock or encrypt a message, you can set your encryption tool to look it up automatically. If it cannot find the key, an error message appears.</p>
 
52
 
 
53
</page>