gpg Key anzeigen lassen

mausi-23:~ michaelmessner$ gpg -K
/Users/michaelmessner/.gnupg/secring.gpg
----------------------------------------
sec   1024D/421C1554 2005-05-13 [expires: 2009-02-12]
uid                  Messner Fh-Sbg <mmessner.tks2003@fh-salzburg.ac.at>
uid                  EDV-Widhalm <messnerm@edv-widhalm.com>
uid                  Michael Messner <contact@m1k3.at>
uid                  Michael Messner <m1k3@m1k3.at>
uid                  Michael Messner (Privat) <michael.messner@m1k3.at>
ssb   4096g/6E9E5BB1 2005-05-13

gpg Public Key export

mausi-23:~ michaelmessner$ gpg --export -a michael.messner@m1k3.at

bzw:

mausi-23:~ michaelmessner$ gpg --export -a michael.messner@m1k3.at > public.key

bzw. einen Fingerprint erstellen:

mausi-23:~ michaelmessner$ gpg --fingerprint 421C1554 > gpg-fingerprint.txt

gpg Private Key export

mausi-23:~ michaelmessner$ gpg --export-secret-key -a 421C1554 > gpg-private.key

GPG - Revokation Zertifikat erstellen

gpg --output revcert.asc --gen-revoke KEY-ID

GPG Keysigning

gpg --recv-keys KEY-ID

gpg --fingerprint KEY-ID

gpg --sign-key KEY-ID

UID löschen

Command> uid 2
              
pub  1024D/421C1554  created: 2005-05-13  expires: 2009-02-12  usage: SCA 
                     trust: unknown       validity: unknown
sub  4096g/6E9E5BB1  created: 2005-05-13  expires: 2009-02-12  usage: E   
[ unknown] (1). Michael Messner <michael.messner@inode.at>
[ unknown] (2)* mIke@myLTSPtv <myltsptv@gmail.com>
[ unknown] (3)  Messner Fh-Sbg <mmessner.tks2003@fh-salzburg.ac.at>
[ unknown] (4)  Michael Messner <michael.messner_edv@inode.at>
[ unknown] (5)  EDV-Widhalm <messnerm@edv-widhalm.com>
[ unknown] (6)  Michael Messner (Privat) <michael.messner@m1k3.at>
[ unknown] (7)  Michael Messner <contact@m1k3.at>
[ unknown] (8)  Michael Messner <m1k3@m1k3.at>

Command> deluid
Really remove this user ID? (y/N) y
                                   
pub  1024D/421C1554  created: 2005-05-13  expires: 2009-02-12  usage: SCA 
                     trust: unknown       validity: unknown
sub  4096g/6E9E5BB1  created: 2005-05-13  expires: 2009-02-12  usage: E   
[ unknown] (1). Michael Messner <michael.messner@inode.at>
[ unknown] (2)  Messner Fh-Sbg <mmessner.tks2003@fh-salzburg.ac.at>
[ unknown] (3)  Michael Messner <michael.messner_edv@inode.at>
[ unknown] (4)  EDV-Widhalm <messnerm@edv-widhalm.com>
[ unknown] (5)  Michael Messner (Privat) <michael.messner@m1k3.at>
[ unknown] (6)  Michael Messner <contact@m1k3.at>
[ unknown] (7)  Michael Messner <m1k3@m1k3.at>

Key verlängern und neue UID hinzufügen

der key davor:

mausi-23:~ michaelmessner$ gpg -K
/Users/michaelmessner/.gnupg/secring.gpg
----------------------------------------
sec   1024D/421C1554 2005-05-13 [expires: 2007-10-04]
uid                  Michael Messner <michael.messner@inode.at>
uid                  Michael Messner <michael.messner_edv@inode.at>
uid                  Messner Fh-Sbg <mmessner.tks2003@fh-salzburg.ac.at>
uid                  mIke@myLTSPtv <myltsptv@gmail.com>
uid                  EDV-Widhalm <messnerm@edv-widhalm.com>
ssb   4096g/6E9E5BB1 2005-05-13


mausi-23:~ michaelmessner$ gpg --edit-key 421C1554
gpg (GnuPG) 1.4.5; Copyright (C) 2006 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/421C1554  created: 2005-05-13  expired: 2007-10-04  usage: SCA 
                     trust: unknown       validity: expired
sub  4096g/6E9E5BB1  created: 2005-05-13  expired: 2007-10-05  usage: E   
[ expired] (1). Michael Messner <michael.messner@inode.at>
[ expired] (2)  mIke@myLTSPtv <myltsptv@gmail.com>
[ expired] (3)  Messner Fh-Sbg <mmessner.tks2003@fh-salzburg.ac.at>
[ expired] (4)  Michael Messner <michael.messner_edv@inode.at>
[ expired] (5)  EDV-Widhalm <messnerm@edv-widhalm.com>


Command> expire
Changing expiration time for the primary key.
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 is valid for? (0) 1y
Key expires at Thu Feb 12 18:33:28 2009 CET
Is this correct? (y/N) y
                        
You need a passphrase to unlock the secret key for
user: "Michael Messner <michael.messner@inode.at>"
1024-bit DSA key, ID 421C1554, created 2005-05-13

Command> adduid
Real name: Michael Messner
Email address: m1k3@m1k3.at
Comment:                   
You selected this USER-ID:
    "Michael Messner <m1k3@m1k3.at>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
                                                     
You need a passphrase to unlock the secret key for
user: "Michael Messner <michael.messner@inode.at>"
1024-bit DSA key, ID 421C1554, created 2005-05-13

                  
pub  1024D/421C1554  created: 2005-05-13  expires: 2009-02-12  usage: SCA 
                     trust: unknown       validity: unknown
sub  4096g/6E9E5BB1  created: 2005-05-13  expired: 2007-10-05  usage: E   
[ unknown] (1). Michael Messner <michael.messner@inode.at>
[ unknown] (2)  mIke@myLTSPtv <myltsptv@gmail.com>
[ unknown] (3)  Messner Fh-Sbg <mmessner.tks2003@fh-salzburg.ac.at>
[ unknown] (4)  Michael Messner <michael.messner_edv@inode.at>
[ unknown] (5)  EDV-Widhalm <messnerm@edv-widhalm.com>

Command> key 1
              
pub  1024D/421C1554  created: 2005-05-13  expires: 2009-02-12  usage: SCA 
                     trust: unknown       validity: unknown
sub* 4096g/6E9E5BB1  created: 2005-05-13  expired: 2007-10-05  usage: E   
[ unknown] (1). Michael Messner <michael.messner@inode.at>
[ unknown] (2)  mIke@myLTSPtv <myltsptv@gmail.com>
[ unknown] (3)  Messner Fh-Sbg <mmessner.tks2003@fh-salzburg.ac.at>
[ unknown] (4)  Michael Messner <michael.messner_edv@inode.at>
[ unknown] (5)  EDV-Widhalm <messnerm@edv-widhalm.com>
[ unknown] (6)  Michael Messner (Privat) <michael.messner@m1k3.at>
[ unknown] (7)  Michael Messner <contact@m1k3.at>
[ unknown] (8)  Michael Messner <m1k3@m1k3.at>

Command> expire
Changing expiration time for a subkey.
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 is valid for? (0) 1y
Key expires at Thu Feb 12 18:41:53 2009 CET
Is this correct? (y/N) y
                        
You need a passphrase to unlock the secret key for
user: "Michael Messner <michael.messner@inode.at>"
1024-bit DSA key, ID 421C1554, created 2005-05-13

                  
pub  1024D/421C1554  created: 2005-05-13  expires: 2009-02-12  usage: SCA 
                     trust: unknown       validity: unknown
sub* 4096g/6E9E5BB1  created: 2005-05-13  expires: 2009-02-12  usage: E   
[ unknown] (1). Michael Messner <michael.messner@inode.at>
[ unknown] (2)  mIke@myLTSPtv <myltsptv@gmail.com>
[ unknown] (3)  Messner Fh-Sbg <mmessner.tks2003@fh-salzburg.ac.at>
[ unknown] (4)  Michael Messner <michael.messner_edv@inode.at>
[ unknown] (5)  EDV-Widhalm <messnerm@edv-widhalm.com>
[ unknown] (6)  Michael Messner (Privat) <michael.messner@m1k3.at>
[ unknown] (7)  Michael Messner <contact@m1k3.at>
[ unknown] (8)  Michael Messner <m1k3@m1k3.at>

Command> quit
Save changes? (y/N) y
 
howto/gpg.txt · Last modified: 2008/05/24 17:05 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki