Monday, August 25, 2008

GPG and PGP

GPG and PGP
Installing PGP on AIX 5.3
gunzip PGPcmdln_6.5.8.AIX_FW.tar.gz
tar xvf PGPcmdln_6.5.8.AIX_FW.tar

[xxxx:/opt/PGP] # ls -l
total 14248
-rw-r--r-- 1 user ux 3637760 Apr 11 16:29 PGPcmdln_6.5.8.AIX_FW.tar
-rwxr-xr-x 1 root staff 3613307 Aug 30 2000 PGPcmdln_6.5.8_AIX_FW.tar.gz
-rwxr-xr-x 1 root staff 66 Aug 30 2000 PGPcmdln_6.5.8_AIX_FW.tar.gz.sig
-rwxr-xr-x 1 root staff 10981 Aug 30 2000 WhatsNew.htm
-rwxr-xr-x 1 root staff 8758 Aug 30 2000 WhatsNew.txt

export PGPPATH=/opt/PGP/pgp-6.5.8/data
#cd pgp-6.5.8

Installing GPG on AIX 5.3
gunzip gnupg-1.2.2.tar.gz
.configure
make
make install

you will find gppin /usr/local/bin

-------------------------------------------------
to create a new key pair
#pgp -kg

To display all of the encryption/decryption options:
#pgp -hTo display all of the key management options:
#pgp -kTo display all of the group management options:

#pgp -gListing all the keys:
gpg --list-keyspgp -kvpgp -kvcpgp -kvv

Exporting keys from the lists:
gpg --armor --output "private.pankaj.asc" --export-secret-keys "pankaj@domain.com"gpg --armor --output "public.y.domain.asc" --export "y@ydomain.com"gpg --armor --output "public.s.asc" --export "e@ydomain.com"gpg --armor --output "public.b.asc" --export "BMail"

Impoting/Adding a keys to the keyring:
pgp -ka data/public.y.domain.ascpgp -ka data/private.pankaj.asc '//.pgp/secring.skr'gpg --import public.pankaj.asc/usr/local/bin/gpg --import private.pankaj.asc

Signing the messages:pgp -es pgp -es
encrypting a file:
pgp -e test/pankaj1.txt pankaj@domain.com -u pankaj.gautam@domain.comgpg --encrypt test.txtdecrypting a filegpg -d /tmp/pankaj1.txt.pgpecho "xxxxxxxxxxxxxxx" /usr/local/bin/gpg --passphrase-fd 0 --always-trust --output test.1 --decrypt YesResponse_20080412.dat.gpg

trust the keys:
pgp -ke pankaj@domain.com

deleting keys:
pgp -kr pankaj@domain.com

No comments: