Top / PGP鍵の作り方
http://www.netbsd.org/developers/pgp.html からの抜粋
% gpg --gen-key Please select what kind of key you want: (1) DSA and ElGamal (default) (2) DSA (sign only) (4) ElGamal (sign and encrypt) (5) RSA (sign only) Your selection? 5 What keysize do you want? (1024) 2048 Requested keysize is 2048 bits Please specify how long the key should be valid. 0 = key does not expire <n> = key expires in n days <n>w = key expires in n weeks <n>m = key expires in n months <n>y = key expires in n years Key is valid for? (0) 0 Key does not expire at all Is this correct (y/n)? y You need a User-ID to identify your key; the software constructs the user id from Real Name, Comment and Email Address in this form: "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>" Real name: Joe Doe Email address: joe@doe.org Comment: (NetBSD) You selected this USER-ID: "Joe Doe (NetBSD) joe@doe.org" Enter passphrase: Repeat passphrase: public and secret key created and signed. key marked as ultimately trusted. pub 2048R/8385E7E3 2004-02-09 Joe Doe (NetBSD) <joe@doe.org> Key fingerprint = 9DDA CB87 9FF2 9950 1F5A 7F79 F38C E6DE 8385 E7E3 Note that this key cannot be used for encryption. You may want to use the command "--edit-key" to generate a secondary key for this purpose. % gpg --edit-key 8385E7E3 Secret key is available. gpg: checking the trustdb gpg: checking at depth 0 signed=0 ot(-/q/n/m/f/u)=0/0/0/0/0/1 pub 2048R/8385E7E3 created: 2004-02-09 expires: never trust: u/u (1). Joe Doe (NetBSD) <joe@doe.org> Command> addkey Key is protected. You need a passphrase to unlock the secret key for user: "Joe Doe (NetBSD) joe@doe.org" 2048-bit RSA key, ID 8385E7E3, created 2004-02-09 Enter passphrase: Please select what kind of key you want: (2) DSA (sign only) (3) ElGamal (encrypt only) (4) ElGamal (sign and encrypt) (5) RSA (sign only) (6) RSA (encrypt only) Your selection? 6 What keysize do you want? (1024) 2048 Requested keysize is 2048 bits Please specify how long the key should be valid. 0 = key does not expire <n> = key expires in n days <n>w = key expires in n weeks <n>m = key expires in n months <n>y = key expires in n years Key is valid for? (0) 0 Key does not expire at all Is this correct (y/n)? y Really create? y pub 2048R/8385E7E3 created: 2004-02-09 expires: never trust: u/u sub 2048R/7BD27991 created: 2004-02-09 expires: never (1). "Joe Doe (NetBSD) joe@doe.org" Command> save %
Counter: 189,
today: 1,
yesterday: 0
Last-modified: Thu, 02 Mar 2006 19:49:01 JST (6775d)
Last-modified: Thu, 02 Mar 2006 19:49:01 JST (6775d)