2. gpgÀÇ ¼³Á¤ (1) °ø°³Å°¿Í ºñ¹ÐÅ°¸¦ »ý¼ºÇÑ´Ù. [posein@www posein]$ gpg --gen-key gpg (GnuPG) 1.0.6; Copyright (C) 2001 Free Software Foundation, Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details.
gpg: Warning: using insecure memory! Please select what kind of key you want: (1) DSA and ElGamal (default) (2) DSA (sign only) (4) ElGamal (sign and encrypt) Your selection? => (¼³¸í) gpg¿¡¼´Â À§¿Í °°Àº Å°¹æ½ÄÀ» Á¦°øÇϴµ¥ DSA´Â ¼¸í¸¸ ÇÒ ¼ö ÀÖ´Â ¹æ½ÄÀÌ°í EIGamal Àº ¾Ïȣȸ¦ ÇÒ ¼ö ÀÖ´Â ¹æ½ÄÀÌ´Ù. ÀϹÝÀûÀ¸·Î µðÆúÆ®°ªÀ» »ç¿ëÇÏ¸é µÇ¹Ç·Î ¿£ÅÍÅ°¸¦ Ä¡°í ´ÙÀ½À¸·Î ³Ñ¾î°£´Ù.
We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the disks) during the prime generation; this gives the random number generator a better chance to gain enough entropy. .++++++++++++++++++++.+++++++++++++++++++++++++.+++++...+++++.++++++++++.++++++++++.+++++ We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the disks) during the prime generation; this gives the random number generator a better chance to gain enough entropy. .+++++++++++++++++++++++++++++++++++.++++++++++++++++++++.++++++++++++++++++++++++++++++++ public and secret key created and signed. => (¼³¸í) °ø°³Å°¿Í ºñ¹ÐÅ°¸¦ »ý¼ºÇÏ¿´´Ù. (2) »ý¼ºµÈ Å°ÀÇ È®ÀÎ 1) ¼³Ä¡µÈ µð·ºÅ丮ÀÇ È®ÀÎ [posein@www posein]$ ls -a ./ .bash_history .bash_profile .emacs .kde/ .mysql_history .viminfo ../ bash_logout .bashrc .gnupg/ .mplayer/ .screenrc .wl => .gnupg¶ó´Â µð·ºÅ丮°¡ »ý¼ºµÇ¾úÀ½À» ¾Ë ¼ö ÀÖ´Ù. 2) ¼³Ä¡µÈ µð·ºÅ丮³»ÀÇ ÆÄÀÏ [posein@www posein]$ cd .gnupg [posein@www .gnupg]$ ls options pubring.gpg pubring.gpg~ random_seed secring.gpg 3) ¼³Ä¡µÈ °ø°³Å°ÀÇ ¸®½ºÆ® È®ÀÎ posein@www posein]$ gpg --list-keys gpg: Warning: using insecure memory! /home/posein/.gnupg/pubring.gpg ------------------------------- pub 1024D/7F1400E1 2002-04-11 Jung sungjae (system manager) <posein@korea.com>
sub 1024g/C4E2C936 2002-04-11
3. °ø°³Å° ÆÄÀÏÀÇ »ý¼º°ú ¼³Ä¡ (1) °ø°³Å° ÆÄÀÏ ¸¸µé±â 1) [posein@www posein]$ gpg --armor --export sungjae gpg: Warning: using insecure memory! -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org
3) ´Ù¸¥ »ç¶÷ °ø°³Å°°¡ ¼¸í´Þ±â [prehee@www prehee]$ gpg --edit-key sungjae gpg (GnuPG) 1.0.6; Copyright (C) 2001 Free Software Foundation, Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details.
gpg: Warning: using insecure memory!
pub 1024D/21BCE5C8 created: 2002-04-11 expires: never trust: -/q sub 1024g/F5F740F4 created: 2002-04-11 expires: never (1). Jung sungjae (system manager) <posein@korea.com> Command> => (¼³¸í) °ø°³Å°ÀÇ ÆíÁýÀ» À§ÇÑ »óÅ·ΠÁøÀÔÇÑ´Ù.
Are you really sure that you want to sign this key with your key: "prehee (system tester) <prehee@mybestone.com>"
Really sign? y
You need a passphrase to unlock the secret key for user: "prehee (system tester) <prehee@mybestone.com>" 1024-bit DSA key, ID 67667253, created 2002-04-11
Enter passphrase: => Æнº¿öµå¸¦ ÀÔ·ÂÇÏ¸é ¼¸íÀÌ µÈ´Ù.
You need a passphrase to unlock the secret key for user: "Jung sungjae (system manager) <posein@korea.com>" 1024-bit ELG-E key, ID F5F740F4, created 2002-04-11 (main key ID 21BCE5C8)