[ic] GPG Encryption

Matt interchange-users@interchange.redhat.com
Thu May 30 18:12:01 2002


Are you on a webhost? or are you using cpanel on your own server?

If you are on a webhost, call them and they will do this for you.
Otherwise, you will need root access, in order to delete the keychain
that is currently installed in the cpanel/.gnupg directory.

First simply remove the .gnupg dir via:  

rm -rf /home/cpanel/.gnupg 

Then you must 'su - cpanel' and import the keyring via:

gpg --import

Then copy the key into the terminatel and hit 'ctrl-D'
Now test by issuing the command:

gpg --list-keys

This should produce a list of all the default keys installed on the 
cpanel 'aka interch' keyring, which is the keychain referenced when
the GPG encryption methods/routines are called.



On Thu, May 30, 2002 at 04:26:33PM -0500, John wrote:
> Not sure but it's good to know what you did, I'm very new to unix and 
> interchange so I'll probably need alot of help myself. good luck.
> On Thursday, May 30, 2002, at 09:01  AM, Dane Morgan wrote:
> 
> >John,
> >
> >GPG is an open source "PGP" program in use on my server.
> >
> >I have resolved this issue. turns out that the whole problem was with 
> >file
> >permissions. My resolution was to move the keyrings to where I had 
> >control
> >and pass a new GNUPGHOME variable with the call to GPG. Any issues I may
> >need to be aware of regarding that?
> >
> >----- Original Message -----
> >From: "John" <John@sunshak.com>
> >To: <interchange-users@interchange.redhat.com>
> >Sent: Thursday, May 30, 2002 12:20 AM
> >Subject: Re: [ic] GPG Encryption
> >
> >
> >>Kind of a newbie to all this but noticed you kept typing GPG instead of
> >>PGP could be problem?
> >>On Thursday, May 30, 2002, at 01:27  PM, AirDelights.com wrote:
> >>
> >>>see if this helps
> >>>http://interchangeville.com/forum/viewthread.php?tid=8
> >>>
> >>>
> >>>----- Original Message -----
> >>>From: "Dane Morgan" <danemorgan@earthlink.net>
> >>>To: <interchange-users@interchange.redhat.com>
> >>>Sent: Wednesday, May 29, 2002 8:24 AM
> >>>Subject: [ic] GPG Encryption
> >>>
> >>>
> >>>>I have scoured the archives of this list and still can not get this
> >>>>thing
> >>>>going.
> >>>>
> >>>>Her is the error I am getting
> >>>>gpg: Warning: using insecure memory!
> >>>>gpg: /home/cpanel/.gnupg/secring.gpg: can't create keyring: 
> >>>>Permission
> >>>>denied
> >>>>gpg: keyblock resource `/home/cpanel/.gnupg/secring.gpg': file open
> >>>>error
> >>>>gpg: /home/camohut/.gnupg/pubring.gpg: can't create keyring: 
> >>>>Permission
> >>>>denied
> >>>>gpg: keyblock resource `/home/camohut/.gnupg/pubring.gpg': file open
> >>>>error
> >>>>gpg: orders@camohut.com: skipped: public key not found
> >>>>gpg: [stdin]: encryption failed: public key not found
> >>>>
> >>>>Here is how I am set up.
> >>>>
> >>>>in catalog.cfg
> >>>>
> >>>>#CreditCardAuto     Yes
> >>>>EncryptProgram   __ENCRYPTOR__
> >>>>EncryptKey       __PGP_KEY__
> >>>>
> >>>>Route main  <<EOF
> >>>>        attach            0
> >>>>        credit_card       1
> >>>>        default           1
> >>>>        email             '__ORDERS_TO__'
> >>>>        encrypt           0
> >>>>        errors_to         '__ORDERS_TO__'
> >>>>        pgp_cc_key        "__PGP_KEY__"
> >>>>        pgp_key           "__PGP_KEY__"
> >>>>        receipt           etc/receipt.html
> >>>>        report            etc/report
> >>>>        supplant          1
> >>>>        individual_track  orders
> >>>>        track             logs/tracking.asc
> >>>>EOF
> >>>>
> >>>>In variables
> >>>>ENCRYPTOR
> >>>        /usr/bin/gpg --no-default-keyring --always-trust --keyring
> >>>>/home/camohut/.gnupg/pubring.gpg -e -a --batch -t -r '%s'
> >>>>PGP_CC_KEY      orders@camohut.com
> >>>>PGP_KEY             orders@camohut.com
> >>>>ORDERS_TO        orders@camohut.com
> >>>>
> >>>>
> >>>>I used the following command in SSH
> >>>>
> >>>>Do I need to ask my host to change the permissions on the pubring.gpg
> >>>file?
> >>>>is this a security issue if I do? Any info, sugestions pointers for
> >>>>where
> >>>to
> >>>>head next are appreciated.
> >>>>
> >>>>A second issue is that when I turn on CreditCardAuto i get the error
> >>>>that
> >>>IC
> >>>>can not determing the expiration date.
> >>>>
> >>>>Thanks,
> >>>>Dane Morgan
> >>>>camohut.com
> >>>>
> >>>>_______________________________________________
> >>>>interchange-users mailing list
> >>>>interchange-users@interchange.redhat.com
> >>>>http://interchange.redhat.com/mailman/listinfo/interchange-users
> >>>
> >>>_______________________________________________
> >>>interchange-users mailing list
> >>>interchange-users@interchange.redhat.com
> >>>http://interchange.redhat.com/mailman/listinfo/interchange-users
> >>>
> >>
> >>_______________________________________________
> >>interchange-users mailing list
> >>interchange-users@interchange.redhat.com
> >>http://interchange.redhat.com/mailman/listinfo/interchange-users
> >
> >_______________________________________________
> >interchange-users mailing list
> >interchange-users@interchange.redhat.com
> >http://interchange.redhat.com/mailman/listinfo/interchange-users
> >
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users