problem loading rsa extension to use with 2.6.3i key (SOLVED)

Simon Amor simon.a@webfusion.co.uk
Tue, 4 Jul 2000 13:43:56 +0100


As a followup to my earlier message, I've found that typing --version
shows all the algorithms whereas -h doesn't.

[admin@sysadm1 admin]$ gpg --version
gpg (GnuPG) 1.0.1
Copyright (C) 1999 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.

Home: ~/.gnupg
Supported algorithms:
Cipher: 3DES, CAST5, BLOWFISH, TWOFISH
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA, ELG
Hash: MD5, SHA1, RIPEMD160

However, when trying to use the key to sign a file:

[admin@sysadm1 admin]$ gpg --clearsign text.txt
gpg: protection algorithm 1 is not supported
gpg: no default secret key: unknown cipher algorithm
gpg: text.txt: clearsign failed: unknown cipher algorithm

I figured this out too.. it's because there was a passphrase on the
2.6.3i key when I imported it. It wasn't the error message documented,
but reading through the list archives I found various comments about
this sort of thing so tried it anyway.

  Simon

----- Original Message -----
From: Simon Amor <simon.a@webfusion.co.uk>
To: <gnupg-users@gnupg.org>
Sent: Tuesday, July 04, 2000 12:31 PM
Subject: problem loading rsa extension to use with 2.6.3i key



> Hi,
>
> I've been trying to use an imported key from pgp 2.6.3i but gpg never
> seems to load the rsa module.
>
> I have in the /home/admin/.gnupg/options file the following line:
> load-extension /home/admin/.gnupg/rsa
>
> I've tried using the default RedHat RPM as well as compiling my own
but
> no luck.
>
> The rsa module was downloaded as rsa.c and compiled using the info at
> the top of the file. The resulting file 'rsa' was placed in
> /home/admin/.gnupg/rsa
> I've also tried copying it to /usr/lib/gnupg/rsa
>
> According to the mini-howto, RSA should show up in the Pubkey line.
>
> [admin@sysadm1 admin]$ gpg --load-extension ~/.gnupg/rsa -h
> gpg (GnuPG) 1.0.1
> Copyright (C) 1999 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.
>
> Home: ~/.gnupg
> Supported algorithms:
> Cipher: 3DES, CAST5, BLOWFISH, TWOFISH
> Pubkey: ELG-E, DSA, ELG
> Hash: MD5, SHA1, RIPEMD160
>
> Syntax: gpg [options] [files]
> sign, check, encrypt or decrypt
> default operation depends on the input data
> [...snip...]
>
> Doing an strace -o gpglog gpg --load-extension ~/.gnupg/rsa -h shows
no
> trace of 'rsa' in the logfile apart from the first line where it
prints
> the arguments.
>
> I really need to be able to use gpg (because of the perl interface)
with
> a 2.6.3i key (not possible to change at the moment for various
reasons).
> Any suggestions as to why this isn't working would be welcomed.
> Solutions are even more welcome ;-)
>
> Simon
>