====== Membuat Kunci GPG ======
===== Kebutuhan =====
* paket gnupg yang sudah terpasang pada sistem Debian
===== Langkah-Langkah =====
- Jalankan perintahgpg --gen-key
- Pilih kunciPlease select what kind of key you want:
(1) DSA and Elgamal (default)
(2) DSA (sign only)
(5) RSA (sign only)
Your selection?
DSA keypair will have 1024 bits.
ELG-E keys may be between 1024 and 4096 bits long.
- Pilih ukuran kunciWhat keysize do you want? (2048)
Requested keysize is 2048 bits
- Tentukan kadaluarsa kunci GPGPlease specify how long the key should be valid.
0 = key does not expire
= key expires in n days
w = key expires in n weeks
m = key expires in n months
y = key expires in n years
Key is valid for? (0) 12m
Key expires at Mon 03 Jan 2011 08:20:24 AM UTC
Is this correct? (y/N) y
- Masukkan informasi yaitu nama lengkap, surel, dan catatanYou need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and Email Address in this form:
"Heinrich Heine (Der Dichter) "
Real name: Iwan Setiawan
Email address: stwn[@]kuliax[.]org
Comment: stwn
You selected this USER-ID:
"Iwan Setiawan (stwn) "
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
- Masukkan kalimat kunciYou need a Passphrase to protect your secret key.
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 XXXXXXXX marked as ultimately trusted
public and secret key created and signed.
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: next trustdb check due at 2011-01-03
pub 1024X/XXXXXXXX 2010-01-08 [expires: 2011-01-03]
Key fingerprint = 5X70 93X5 756A XXXX 4164 8264 6X87 232X X2X1 6887
uid Iwan Setiawan (stwn)
sub 2048x/4XXX3954 2010-01-08 [expires: 2011-01-03]
===== Menandatangani Berkas =====
Pada proses membangun, debuild akan memeriksa kunci yang sesuai dengan nama pembuat perubahan pada paket dan akan meminta melakukan tanda tangan terhadap .dsc dan .changes
===== Mengekspor Kunci =====
Jalankan perintah:
gpg --export -a "Iwan Setiawan" > stwn.pub.asc
===== Menyunting Kunci =====
gpg --edit-key maintainer@kuliax.org passwd
===== Menghapus Kunci GPG =====
* Lihat daftar kuncigpg --list-keypub 1032C/3F5BHCG 2010-01-01 [expires: 2011-01-01]
uid Iwan Setiawan
sub 2048x/26397X32 2010-01-01 [expires: 2011-01-01]
* Hapus kuncigpg --delete-secret-and-public-key 3F5BHCG