Modified: 21 September 2002
PGPのダウンロードから鍵作成
PGPのPlug-inのダウンロードからインストール
暗号化メールの送受信
署名メールの送受信
ダウンロード
以下から、BeckeyのPGP Plug-inをダウンロードします。
http://www.ops.dti.ne.jp/~yuga/koubou/pgpb2.html
インストール
解凍したら、"Pgpb2.dll"が出てきますので、このファイルを、"C:\Program Files\RimArts\B2\PlugIns"にコピーします。
PGPをダウンロード
以下のページから"PGP 6.5.8 command line"をダウンロードします。
http://www.pgpi.org/products/pgp/versions/freeware/win32/6.5.8/
2002年9月21日時点で、"PGPcmdln_6.5.8_Win32_FW.zip" がダウンロードできました。
PGPのインストール
解凍すると、"setup.exe"が出てくるので、これを実行し、インストールします。
インストール後、"C:\Program Files\Network Associates\PGPcmdln"にある"pgp.exe"と"pgp.bat"を、Windowsフォルダにコピーします。
PGPで鍵を作成する
C:\Documents and Settings\tomo> pgp -kg
Pretty Good Privacy(tm) Version 6.5.8
(c) 1999 Network Associates Inc.
Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.
Export of this software may be restricted by the U.S. government.
Choose the public-key algorithm to use with your new key
1) DSS/DH (a.k.a. DSA/ElGamal) (default)
2) RSA
Choose 1 or 2: 1
Choose the type of key you want to generate
1) Generate a new signing key (default)
2) Generate an encryption key for an existing signing key
Choose 1 or 2: 1
Pick your DSS ``master key'' size:
1) 1024 bits- Maximum size (Recommended)
Choose 1 or enter desired number of bits: 1
Generating a 1024-bit DSS key.
You need a user ID for your public key. The desired form for this
user ID is your name, followed by your E-mail address enclosed in
<angle brackets>, if you have an E-mail address.
For example: John Q. Smith <jqsmith@nai.com>
Enter a user ID for your public key: <tomoac@csc.ne.jp>
Enter the validity period of your signing key in days from 0 - 10950
0 is forever (the default is 0): 0
You need a pass phrase to protect your DSS secret key.
Your pass phrase can be any sentence or phrase and may have many
words, spaces, punctuation, or any other printable characters.
Enter pass phrase: ********
Enter same pass phrase again: ********
PGP will generate a signing key. Do you also require an
encryption key? (Y/n) y
Pick your DH key size:
1) 1024 bits- High commercial grade, secure for many years
2) 2048 bits- "Military" grade, secure for forseeable future
3) 3072 bits- Archival grade, slow, highest security
Choose 1, 2, 3, or enter desired number of bits: 1
Enter the validity period of your encryption key in days from 0 - 10950
0 is forever (the default is 0): 0
Note that key generation is a lengthy process.
PGP needs to generate some random data. This is done by measuring
the time intervals between your keystrokes. Please enter some
random text on your keyboard until the indicator reaches 100%.
Press ^D to cancel
100% of required data **************************************
Enough, thank you.
...******* .........................******* .
Make this the default signing key? (Y/n) y
.................................******* .......................................
................................................................................
................********
Key generation completed.
C:\Documents and Settings\tomo>鍵は、"C:\Documents and Settings\tomo\Application Data\PGP"に作成されます。
公開鍵は、"pubring.pkr"で、秘密鍵は、"secring.pkr"です。
公開鍵をテキストファイルにする
以下のコマンドで、公開鍵を公開するためのテキストファイルに変換できます。
C:\Documents and Settings\tomo>pgp -kxa tomoac@csc.ne.jp tomo
Pretty Good Privacy(tm) Version 6.5.8
(c) 1999 Network Associates Inc.
Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.
Export of this software may be restricted by the U.S. government.
Extracting from keyring 'c:\documents and settings\tomo\application data\pgp\pub
ring.pkr', userid "tomoac@csc.ne.jp".
Transport armor file: tomo
Key extracted to file 'tomo'.
C:\Documents and Settings\tomo>more tomo
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP 6.5.8
mQGiBD2MAGkRBADAb0WZAh5MPajmcculBBTz9FvmQn8HQLvmo2x+nXPGABgkVWS7
2zPY2eDYvp8mXFF+zoyNf063FWn7F+K/HO4fLn4E1+hgMwm6qGpL7nlh1bInJrTs
R0ZgE3SxVpUEyBHmNQLwUvnlrZyYNNfBqk6TwtBPxUIJCAWCOfQ4nLwh5wCg/5JB
5JGe6JzJT3kpsZXxsAKKvTcD/2WLR41pNVvu4YnDheLvYizQxv56+LfcQJ+rqq2S
GO1cd5wSeS1Y9Zf2fJ06n6Nbhj4hBucYpIfeTXPzmCrg7/T5oLeC2aKmR4AzqnwU
eETum1aMrmVZ8xUtXiewlIA/sdI9PAhPaWmh7MV9kt38Rw0udRtXlrWg1IxjoOle
EFcwBADADtl1YWrTzFUQ5LLtHO7Ca0rAuyooXuE5+D75np/sgR4f2sjTF6XsCscx
75TROHutikGAKJlFpVA5ZB5dXF6hwu3XYYqnM5qPsxTEDcVRhnwTn9YTkE8qlz2Y
7uc6n0LZiAfhOHYwLH4UC8thnp05RgmKMTcVE+zK0vlp6mtsu7QQdG9tb2FjQGNz
Yy5uZS5qcIkATgQQEQIADgUCPYwAaQQLAwECAhkBAAoJEHI1FgFjlOr7zuwAn28q
cwm08PclsueYcPBcfy1VHtnMAKD3b8985xYDGJ6Q70BCB+LfTupfE7kBDQQ9jABw
EAQA1K1x7mmppJT9AOd4fkjTIzw3ofir/xI6zPcQyflD8H1idIaLLIJkBzaS2FTr
Z+3zBj3R4u8QxQJZ/rA2u0BY21kyBU8YFDVxHh5Wef8U6rS4nM8uBkPw2YivWITX
FeTBD9mK7ZlF8Z2q3bxuggyaprnbhTIkjQB+5dhBgu75dEEAAgID/0sPnFHWgUA5
56X2fzLMKHPBuHmdjYtgc6ted/Hf00JBWlj7jhRo8CWfbc83h8LLXPuZ+3UIdbh3
3sJ0+jcfSG28QNdZO8rXb0MT5fu321fMoSvDfQlm1+z21QNldageuFsHl7QSelJa
+kib2ZVFbFkhc44yt01EY99nUeHuUDaDiQBGBBgRAgAGBQI9jABwAAoJEHI1FgFj
lOr7mrgAoPZHBo+Ar4oKFqLKmjzUeE/mrQKYAJ9D5QfiYyGOj5SXoCDcve39dNUO
UA==
=Dm9u
-----END PGP PUBLIC KEY BLOCK-----
C:\Documents and Settings\tomo>
メールの送信
通常通り、メールを作成します。
「ツール」メニューから「PGP: 暗号化」をクリックします。
しばらくすると、暗号化処理が行われ、以下のように結果が表示されます。
「閉じる」ボタンをクリックすると、本文が暗号化され、添付されていますのでこのまま送信します。
暗号化メールを受信する
暗号化メールを受信したら、「ツール」メニューから「PGP: 復号化と検証...」をクリックします。
以下のダイアログが出ますので、秘密鍵のパスワードを入れます。
鍵で復号化処理の結果が表示されます。
「OK」で閉じると、以下のように内容が表示されます。
署名メールの送信
メール本文を作成します。
署名するために、「ツール」メニューから「PGP: 署名」をクリックします。
以下のダイアログが出ますので、秘密鍵のパスワードを入力します。
「OK」で閉じると、署名データが添付されますので、送信すると完了です。
署名メールを受信
署名メールを受信したら「ツール」メニューから「PGP: 復号化と検証」をクリックします。
署名内容は、以下のようにダイアログで表示されます。
"Good signature"が出ておれば署名は正しいことを示しています。