Титла: OpenPGP SmartCard key generation failed
Публикувано от: FRealmS в Oct 07, 2009, 22:53
Здравейте, от скоро се сдобих с OpenPGP SmartCard v2, но не успявам да генерирам двойка ключове върху нея. #gpg --card-status ми извежда пълна информация относно картата, но поради някаква неизвестна за мене причина не ми позволява да генерирам ключовете. ~# gpg --card-edit ... gpg: detected reader `OmniKey CardMan 6121 00 00' ... Command> admin Admin commands are allowed Command> generate Make off-card backup of encryption key? (Y/n) n gpg: 3 Admin PIN attempts remaining before card is permanently locked Admin PIN PIN 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) Key does not expire at all Is this correct? (y/N) y You 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) <heinrichh@duesseldorf.de>" Real name: abcdefgh Email address: abcdefgh@gmail.com Comment: abcdefgh You selected this USER-ID: "abcdefgh (abcdefgh) <abcdefgh@gmail.com>" Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o gpg: generating new key gpg: please wait while key is being generated ... gpg: generating key failed gpg: key generation failed: general error Key generation failed: general error Command>
ето малко повече инфо # lsusb Bus 001 Device 006: ID 076b:6622 OmniKey AG CardMan 6121
#gpg --help gpg (GnuPG) 1.4.9
# pcsc_scan PC/SC device scanner V 1.4.14 (c) 2001-2008, Ludovic Rousseau <ludovic.rousseau@free.fr> Compiled with PC/SC lite version: 1.4.101 Scanning present readers 0: OmniKey CardMan 6121 00 00 ... Reader 0: OmniKey CardMan 6121 00 00 Card state: Card inserted, ...
Благодаря предварително
Титла: Re: OpenPGP SmartCard key generation failed
Публикувано от: gat3way в Oct 08, 2009, 00:06
В dmesg дали се появяват някакви странни съобщения, свързани с четеца?
Титла: Re: OpenPGP SmartCard key generation failed
Публикувано от: v_badev в Oct 08, 2009, 10:44
Не знам дали това е проблема, но този четец с opensource драйвера не работи с RSA ключове по-дълги от 1024 бита.
Титла: Re: OpenPGP SmartCard key generation failed
Публикувано от: FRealmS в Oct 08, 2009, 16:23
Здравейте, dmesg не ми дава никакви грешки... четеца си работи перфектно. Имам и Siemens CardOS V4.3B, която работи без проблем. Системата открива картата, като дори мога да променям някаква информация в нея (наприпер Name of cardholderкогато се опитам да генерирам в картата, не ме пита за вида и дължината на ключа. ~# dmesg ... [ 1140.536088] usb 1-1: new full speed USB device using uhci_hcd and address 6 [ 1140.736746] usb 1-1: configuration #1 chosen from 1 choice [ 1140.770794] usb 1-1: New USB device found, idVendor=076b, idProduct=6622 [ 1140.770823] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1140.770834] usb 1-1: Product: Smart Card Reader USB [ 1140.770843] usb 1-1: Manufacturer: OMNIKEY AG
~# pcsc_scan PC/SC device scanner V 1.4.14 (c) 2001-2008, Ludovic Rousseau <ludovic.rousseau@free.fr> Compiled with PC/SC lite version: 1.4.101 Scanning present readers 0: OmniKey CardMan 6121 00 00
Thu Oct 8 16:16:47 2009 Reader 0: OmniKey CardMan 6121 00 00 Card state: Card inserted, ATR: 3B DA 18 FF 81 B1 FE 75 1F 03 00 31 C5 73 C0 01 40 00 90 00 0C ... Possibly identified card (using ~/.smartcard_list.txt): 3B DA 18 FF 81 B1 FE 75 1F 03 00 31 C5 73 C0 01 40 00 90 00 0C GnuPG card V2
|