Hi everyone,

Does anyone have experience with using Crypt::OpenPGP ?  I'm a newbie to
PGP and any help would be appreciated.

It was a bear to find precompiled versions of all the required modules
for Windows, but I was finally able to do so. I also downloaded the test
suits from CPAN to verify that it works.  Only test 13-keygen.t has
problems when it tries to create a DSA key when it hit Unix Specific
code.  So I'm not too worried about key generation since the docs say
this is alpha code and the DSA test eventually passes anyway.

So my question is how do I generate and store my public/private keys and
put them into the appropriate key stores for use?  Can this be done in
Perl or do I need to use a 3rd party package to manage my key ring?

I tried to get around that problem by downloading & installing GnuPG
v1.4.9, but that route seems to have uncovered issues with the
Crypt::OpenPGP Perl module itself when I point Perl to GnuPG's key
stores.

After I generated the keys in GnuPG, I tried the following tests: (4th
one fails)
1) Encrypt a file & then decrypt it using GnuPG - It worked
2) Encrypt a file & then decrypt it using Crypt::OpenPGP - It worked
3) Encrypt a file with Crypt::OpenPGP & Decrypt it with GnuPG - It
worked
4) Encrypt a file with GnuPG & Decrypt it with Crypt::OpenPGP - It fails
!!!!!

So that makes me worry that when I publish my Public Key, I won't be
able to decrypt any one else's files if I can't figure out why test #4
fails.

The error I get from $pgp->errstr is "ERROR: Symkey decrypt failed:
Invalid secret key ID"

Here's the command I used to generate the encrypted file with:
gpg --output testing.txt.gpg --verbose --encrypt --recipient 81190FA0
testing.txt

And I'm using that key id in my Perl script as well.

Any pointers would be appreciated here.  I went and used 11-encrypt.t as
my starting point.  I'll have a brief code packet available for anyone
who can help.

Thanks

Curtis


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to