Package: gnupg
Version: 1.4.6-2
Severity: minor

When setting the expiry time to values bigger than 97 years (years
>2106), gpg creates a key with expiry date set in the past. I think it
would be ok to not allow creation of such keys rather than creating keys
expired in the momnet the're created. Or has this some sense to it, say
for testing purposes ??


Plese see the transcript of my example session:

 gpg --gen-key
gpg (GnuPG) 1.4.6; 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.

Please 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.
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 is valid for? (0) 1y
Key expires at Wed 25 Mar 2009 02:30:37 PM CET
Is this correct? (y/N) n
Key is valid for? (0) 97y
Key expires at ????-??-??
Your system can't display dates beyond 2038.
However, it will be correctly handled up to 2106.
Is this correct? (y/N) n
Key is valid for? (0) 98y
Key expires at Sat 24 Jan 1970 08:02:34 AM CET
Is this correct? (y/N) n
Key is valid for? (0)
gpg: Interrupt caught ... exiting


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnupg depends on:
ii  gpgv                    1.4.6-2          GNU privacy guard -
signature veri
ii  libbz2-1.0              1.0.3-7          high-quality block-sorting
file co
ii  libc6                   2.7-4            GNU C Library: Shared libraries
ii  libldap2                2.1.30.dfsg-13.5 OpenLDAP libraries
ii  libreadline5            5.2-3            GNU readline and history
libraries
ii  libusb-0.1-4            2:0.1.12-7       userspace USB programming
library
ii  makedev                 2.3.1-84         creates device files in /dev
ii  zlib1g                  1:1.2.3.3.dfsg-6 compression library - runtime

gnupg recommends no packages.

-- debconf-show failed

-- 
Simon Kainz, BSc
Graz, University of Technology
Department Computing
Phone: 043 (0) 316 / 873 6885



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to