| Home | | |


Wednesday, October 04, 2006

Mengaktifkan kembali keypair yg sudah expired.

Tanggal pengeditan terkini:
denny@profff:~$ date
Wed Oct 4 16:50:03 WIT 2006

1.Menampilkan key yg tersedia
denny@profff:~$ gpg --list-key
/home/denny/.gnupg/pubring.gpg
------------------------------
pub 1024D/F4060D91 2006-09-05 [expired: 2006-09-25)]
uid Denny Alfatih (gue denny)

2.Melakukan edit key
denny@profff:~$ gpg --edit-key F4060D91
gpg (GnuPG) 1.4.1; Copyright (C) 2005 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.

Secret key is available.

pub 1024D/F4060D91 created: 2006-09-05 expired: 2006-09-25 usage: CS
trust: full validity: expired
sub 2048g/AE3E7F3E created: 2006-09-05 expired: 2006-10-05 usage: E
[ expired] (1). Denny Alfatih (gue denny)

Command> expire
Changing expiration time for the primary key.
Please 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) 3w
Key expires at Wed 25 Oct 2006 05:08:27 PM WIT
Is this correct? (y/N)y

You need a passphrase to unlock the secret key for
user: "Denny Alfatih (gue denny) "
1024-bit DSA key, ID F4060D91, created 2006-09-05

Enter passphrase:

pub 1024D/F4060D91 created: 2006-09-05 expires: 2006-10-25 usage: CS
trust: full validity: unknown
sub 2048g/AE3E7F3E created: 2006-09-05 expires: 2006-10-05 usage: E
[ unknown] (1). Denny Alfatih (gue denny)

Edit key selain berdasar ID juga bisa berdasarkan nama.
perintah expire digunakan untuk mengubah tanggal kadaluarsa key dan subkey.
3w(3 minggu),m(bulan), y(tahun), 0(selamanya), untuk masa berlaku key dari
tanggal kita melakukan pengeditan.
kalo udah fix tekan Y (yes), dan masukkan passphrasenya.
terlihat perubahanya, dari expired: 2006-09-25 menjadi expires: 2006-10-25.


3.Edit key sub utama.
enny@profff:~$ gpg --edit-key F4060D91

Command> key 1

pub 1024D/F4060D91 created: 2006-09-05 expires: 2006-10-24 usage: CS
trust: full validity: unknown
sub* 2048g/AE3E7F3E created: 2006-09-05 expires: 2006-10-05 usage: E
[ unknown] (1). Denny Alfatih (gue denny)

Command> expire
Changing expiration time for a subkey.
Please 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) 10
Key expires at Sat 14 Oct 2006 05:34:47 PM WIT
Is this correct? (y/N) y

You need a passphrase to unlock the secret key for
user: "Denny Alfatih (gue denny) "
1024-bit DSA key, ID F4060D91, created 2006-09-05


pub 1024D/F4060D91 created: 2006-09-05 expires: 2006-10-24 usage: CS
trust: full validity: unknown
sub* 2048g/AE3E7F3E created: 2006-09-05 expires: 2006-10-14 usage: E
[ unknown] (1). Denny Alfatih (gue denny)

Command> save

Untuk mengedit sub key utama ketik key 1 (1=no key utama).
Ketik expire untuk mengubah masa berlaku key.
Masukkan waktu lamanya kadaluarsa kunci.
10 (10 hari) dari waktu pengeditan key.
untuk keluar ketik save, maka default akan menyimpan dan sekaligus keluar.

4.exsport public key yang baru diedit ke keyserver ato via email ke partner pengirim email.

Key sudah bisa digunakan lagi.

0 comments:

 

Home | Blogging Tips | Blogspot HTML | Make Money | Payment | PTC Review

Denoxcyber © Template Design by Herro | Publisher : Templatemu