Evolution Secure
Using GPG with Evolution Secure Communication (SLED11)
GPG (GnuPG) is the GNU project's complete and free implementation of the OpenPGP standard as defined by RFC4880 . GnuPG allows to encrypt and sign your data and communication, features a versatile key managment system as well as access modules for all kind of public key directories. GnuPG, also known as GPG, is a command line tool with features for easy integration with other applications. A wealth of frontend applications and libraries
are available. Version 2 of GnuPG also provides support for S/MIME.
Ref: http://www.gnupg.org/
Sample:
my@mydomain.com
friend@mydomain.com
1). Create Public key
$ gpg --gen-key
Please select what kind of key you want:
(1) DSA and Elgamal (default)
(2) DSA (sign only)
(5) RSA (sign only)
เลือก 1
Your selection? 1
DSA keypair will have 1024 bits.
ELG keys may be between 1024 and 4096 bits long.
What keysize do you want? (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
เลือก 0 หรือ แล้วแต่จะกำหนด
Key is valid for? (0) 0
Key does not expire at all ; key ทั้งหมดไม่มีการหมดอายุ ถูกต้องแล้วตอบ y
Is this correct? (y/N) y
Real name: <ชื่อ-นามสกุล>
Email address: my@mydomain.com
Comment: secure by GPG
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key. กดตัว "O" ที่ keyboard
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.
gpg: key C4F46A51 marked as ultimately trusted
public and secret key created and signed.
รอสักพัก...จากนั้นจะแสดง Public key ของคุณ
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 2 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 2u
2). Export Public key (เพื่อส่งให้เพื่อน)
$ gpg -a --export my@mydomain.com > my_public_key.asc
จากนั้นทำการสั่งไฟล์นี้ให้เพื่อน
3). Verify key ID
$ gpg --fingerprint my@mydomain.com
pub 1024D/E645AA9B
E645AA9B คือ key ID สำหรับใช้ใน Evolution
4). Configuration Evolution Using GPG
Evolution Main menu, Select Edit > Preferences > Select Mail Accounts. > Edit button. Select the Security tab.
ใส่ PGP/GPG Key ID: E645AA9B จากนั้นก็เลือกออปชั่น
Always sign outgoing messages when using this account
หรือจะเลือก Always encrypt to myself when sending encrypted mail ก็ได้แล้วเวลา New message ขึ้นมาค่อยเลือกที่แท็บ Security คลิกเลือก GPG Sign และ GPG Encrypt.
5). Import key ID (สำหรับเพื่อนเรา) ที่อีเมล์ friend@mydomain.com
$ gpg --import my_public_key.asc (ไฟล้ที่ได้รับจากเพื่อน)
$ gpg --sign-key my@mydomain.com (อีเมล์ของเพื่อนเรา)
*** ถ้าคุณไม่ทำบรรทัดนี้เวลาที่เพื่อนส่งเมล์หาคุณพร้องกับใช้ GPG Sign และ GPG Encrypt. คุณจะไม่สามารถเปิดอ่านเมล์ได้ เว้นแต่คุณรู้รหัสผ่าน Secure Key แต่ถ้าทำบรรทัดนี้ message จะถูก unlock อัตโนมัต (Valid signature
Encrypted)
*** ในทางกลับกันถ้า friend@mydomain.com สร้าง public key ก็ให้ทำตามขั้นตอนแรกครับ เป็นอันเสร็จ (คอนฟิกให้ CEO, GM, MD ใช้ก็ดีนะ)
บทความเก่า : http://www.susethailand.com/index.php/en/evolution-pgp

SUSE Linux Enterprise Cool Solutions
|












