B.3. Å°½Ö »ý¼ºÇϱâ

GnuPG¸¦ »ç¿ëÇϽ÷Á¸é ¸ÕÀú »õ·Î¿î Å°½Ö: °ø°³Å°¿Í ºñ¹ÐÅ°¸¦ »ý¼ºÇÏ¼Å¾ß ÇÕ´Ï´Ù.

Å°½ÖÀ» »ý¼ºÇϱâ À§Çؼ­´Â ½© ÇÁ·ÒÇÁÆ®¿¡¼­ ´ÙÀ½ÀÇ ¸í·ÉÀ» ÀÔ·ÂÇÕ´Ï´Ù:

gpg --gen-key

¿©·¯ºÐÀº »ç¿ëÀÚ °èÁ¤À» °¡Àå ºó¹øÈ÷ »ç¿ëÇϱ⠶§¹®¿¡ (·çÆ®°¡ ¾Æ´Ñ) »ç¿ëÀÚ °èÁ¤À¸·Î ·Î±×ÀÎÇϼż­ ÀÌ ÀÛ¾÷À» ¼öÇàÇÏ¼Å¾ß ÇÕ´Ï´Ù.

¼Ò°³ È­¸éÀÌ ³ªÅ¸³ª¸ç Å° ¿É¼ÇÀ» º¸¿©ÁÝ´Ï´Ù. ÀÌ Áß ÇÑ ¿É¼ÇÀº µðÆúÆ®·Î¼­ ±ÇÀåµË´Ï´Ù. ´ÙÀ½À» º¸½Ê½Ã¿À:

gpg (GnuPG) 1.2.1; Copyright (C) 2002 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.

Please select what kind of key you want:
   (1) DSA and ElGamal (default)
   (2) DSA (sign only)
   (5) RSA (sign only)
Your selection?

½ÇÁ¦·Î ¿É¼ÇÀ» ¼±ÅÃÇÏ´Â ´ëºÎºÐÀÇ È­¸é¿¡¼­´Â µðÆúÆ® ¿É¼ÇÀÌ °ýÈ£ ¾È¿¡ ³ªÅ¸³³´Ï´Ù. °£´ÜÈ÷ [Enter] Å°¸¦ ´©¸£½Ã¸é µðÆúÆ® ¿É¼ÇÀ» »ç¿ëÇÕ´Ï´Ù.

ù È­¸é¿¡¼­´Â µðÆúÆ® ¿É¼Ç: (1) DSA and ElGamalÀ» ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù. ÀÌ ¿É¼ÇÀ» ¼±ÅÃÇÏ½Ã¸é µðÁöÅÐ ¼­¸íÀ» »ý¼ºÇÏ°í µÎ°¡Áö À¯ÇüÀÇ ±â¼úÀ» »ç¿ëÇÏ¿© ¾Ïȣȭ(¿Í Çص¶)ÀÌ °¡´ÉÇØÁý´Ï´Ù. ±âº»°ªÀÎ 1À» ÀÔ·ÂÇÏ°í [Enter] Å°¸¦ Ĩ´Ï´Ù.

´ÙÀ½Àº Å° Å©±â¸¦ °áÁ¤ÇÏ´Â ´Ü°èÀÔ´Ï´Ù. ÀϹÝÀûÀ¸·Î Å°ÀÇ ±æÀÌ°¡ ±æ¼ö·Ï ´õ ¾ÈÀüÇÕ´Ï´Ù. º¸ÅëÀÇ °æ¿ì¿¡´Â µðÆúÆ® °ªÀÎ 1024 ºñÆ®°¡ Àû´çÇÕ´Ï´Ù. [Enter] Å°¸¦ Ä¡°í ³Ñ¾î°©´Ï´Ù.

´ÙÀ½ ¿É¼ÇÀº Å°ÀÇ À¯È¿ ±â°£À» Á¤ÇÏ´Â °ÍÀÔ´Ï´Ù. ÀϹÝÀûÀ¸·Î µðÆúÆ® °ª (0 = key does not expire)À» »ç¿ëÇÕ´Ï´Ù. ¸¸ÀÏ À¯È¿ ±â°£À» Á¤ÇϽøé, °ø°³Å°¸¦ ±³È¯ÇÑ ¸ðµç »ç¶÷µé¿¡°Ô °ø°³Å°ÀÇ ¸¸±âÀÏÀ» ¾Ë·Á¼­ »õ·Î¿î °ø°³Å°¸¦ ¹Ù²Ù¾î ÁÖ´Â °ÍÀ» ÀØÁö ¸¶½Ê½Ã¿À. À¯È¿ ±â°£À» Á¤ÇÏÁö ¾ÊÀ¸½Å´Ù¸é, °áÁ¤À» ´Ù½Ã È®ÀÎÇϵµ·Ï ¿äûÇÒ °ÍÀÔ´Ï´Ù. È®ÀÎÀ» À§ÇØ [y] Å°¸¦ ´­·¯ ÁֽʽÿÀ.

´ÙÀ½Àº »ç¿ëÀÚ À̸§, À̸ÞÀÏ ÁÖ¼Ò¿Í °£´ÜÇÑ ¼³¸íÀÌ ´ã±ä »ç¿ëÀÚ ID¸¦ °áÁ¤ÇÏ´Â °ÍÀÔ´Ï´Ù. °áÁ¤ÀÌ ¿Ï·áµÇ¸é ¿©·¯ºÐÀÌ ÀÔ·ÂÇϽŠÁ¤º¸°¡ ¿ä¾àµÇ¾î ³ªÅ¸³³´Ï´Ù.

´õ ¹Ù²Ü °ÍÀÌ ¾øÀ¸¸é ºñ¹Ð¹®±¸(passphrase)¸¦ ÀÔ·ÂÇÕ´Ï´Ù.

ÀÛÀºº¸ÈùÆ®
 

¿©·¯ºÐÀÇ °èÁ¤ ¾ÏÈ£¿Í ¸¶Âù°¡Áö·Î GnuPG¿¡¼­ ÃÖÀûÀÇ º¸¾ÈÀ» À§Çؼ­´Â ÁÁÀº ºñ¹Ð¹®±¸°¡ ÇÊ¿äÇÕ´Ï´Ù. ¿¹·Î µé¸é ºñ¹Ð¹®±¸¿¡ ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ, ¼ýÀÚ ¶Ç´Â ±¸µÎÁ¡À» ¼¯¾î¼­ »ç¿ëÇÏ´Â °ÍÀÌ ÁÁ½À´Ï´Ù.

ÀÏ´Ü ºñ¹Ð¹®±¸¸¦ ÀÔ·ÂÇÏ°í È®ÀÎÇÏ½Ã¸é °ø°³Å°¿Í ºñ¹ÐÅ°°¡ »ý¼ºµË´Ï´Ù. ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö°¡ ³ªÅ¸³¯ °ÍÀÔ´Ï´Ù:

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.
+++++.+++++.++++++++....++++++++++..+++++.+++++.+++++++.+++++++
+++.++++++++++++++++++++++++++++++++++++++..........................++++

È­¸é¿¡¼­ ÀÌ·ç¾îÁö´ø ÀÛ¾÷ÀÌ ¸ØÃß¸é »õ·Î¿î Å°µéÀÌ ¸¸µé¾îÁ®¼­ ¿©·¯ºÐ Ȩ µð·ºÅ丮 ¾ÈÀÇ .gnupg µð·ºÅ丮¿¡ ÀúÀåµË´Ï´Ù. °ø°³Å°¿Í ºñ¹ÐÅ°¸¦ º¸±â À§Çؼ­´Â ´ÙÀ½ ¸í·ÉÀ» »ç¿ëÇÕ´Ï´Ù:

gpg --list-keys

´ÙÀ½°ú À¯»çÇÑ °á°ú°¡ ³ªÅ¸³¯ °ÍÀÔ´Ï´Ù:

/home/username/.gnupg/pubring.gpg
-----------------------------------------
pub  1024D/B7085C8A 2000-06-18 Your Name <you@example.com>
sub  1024g/E12AF9C4 2000-06-18

1.0.6 ÀÌÀü ¹öÀü GnuPG Å°¸¦ »ý¼ºÇϽŠ°æ¿ì, ¿©·¯ºÐÀÇ ºñ¹ÐÅ°¸¦ º¸³»±âÇϽŠÈÄ »õ·Î¿î ºñ¹ÐÅ°¸¦ °¡Á®¿À¼Ì´Ù¸é 1.0.7 ÀÌÈÄ ¹öÀü Ç׸ñÀ» »çÀÎÇϱâ À§ÇØ ¿©·¯ºÐÀÇ Å°¸¦ ¸í¹éÇÏ°Ô ½Å¿ëÇØÁÖ¼Å¾ß ÇÕ´Ï´Ù. Å°¸¦ ½Å¿ëÇϱâ À§Çؼ­´Â ´ÙÀ½°ú °°Àº ¸í·ÉÀ» ÀÔ·ÂÇϽʽÿÀ (<user-id> ºÎºÐÀ» ¿©·¯ºÐÀÇ »ç¿ëÀÚ ID·Î ´ëüÇϽñ⠹ٶø´Ï´Ù):

gpg --edit-key <user-id>

Command> ÇÁ·ÒÇÁÆ®¿¡¼­ trust¶ó°í ÀÔ·ÂÇϽŠÈÄ Å°¸¦ ½Å¿ëÇϱâ À§ÇÏ¿© 5 = I trust ultimately¸¦ ¼±ÅÃÇϽʽÿÀ.