in reply to Can't use CPAN.pm once gpg installed

perl -e 'chmod 0700,"~/.gnupg";chmod 0600,"~/.gnupg/gpg.conf";'

There are ten types of people: those that understand binary and those that don't.

Replies are listed 'Best First'.
Re^2: Can't use CPAN.pm once gpg installed
by jkeenan1 (Deacon) on Jan 30, 2006 at 01:37 UTC
    The permissions on the ~/.gnupg directory were already set to 0700:

    [jimk] 503 $ ls -al total 464 ... drwx------ 8 jimk jimk 272 28 Jan 12:52 .gnupg

    The permissions on ~/.gnupg/gpg.conf were 0644; I changed them to 0600:

    [.gnupg] 512 $ ll total 56 -rw------- 1 jimk jimk 8084 28 Jan 12:33 gpg.conf

    I re-ran the cpan shell for Email::Send. Same results. I got the same results when I took the suggestion about removing /Users/jimk/.cpan/sources/authors/id/C/CW/CWEST/CHECKSUMS and then re-called install Send::Easy.

    Note: The error messages refer to unsafe ownership on gpg.conf:

    gpg: WARNING: unsafe ownership on configuration file `/Users/jimk/.gnu +pg/gpg.conf'

    Since 'jimk' rather than 'root' is the owner of gpg.conf, could that be the problem? (Well, I doubt it, I tried changing the ownership of that file to root, reran the shell, and again failed.)

    More thoughts? Thanks.

    jimk

Re^2: Can't use CPAN.pm once gpg installed
by jkeenan1 (Deacon) on Jan 30, 2006 at 01:47 UTC
    Here is possibly relevant documentation from CPAN.pm:

    Cryptographically signed modules

    Since release 1.77 CPAN.pm has been able to verify cryptographically signed module distributions using Module::Signature. The CPAN modules can be signed by their authors, thus giving more security. ...

    You will need to have Module::Signature installed, which in turn requires that you have at least one of Crypt::OpenPGP module or the command-line gpg tool installed.

    You will also need to be able to connect over the Internet to the public keyservers, like pgp.mit.edu, and their port 11731 (the HKP protocol).

    Well, I've got Module::Signature and gpg installed, and I'm connected to the Internet. What am I missing?

    jimk