gpg help

This is a discussion on gpg help within the Linux Security forums, part of the System Security and Security Related category; what's the best way to import keys from pgp (public & secret), do I need to export first from ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-05-2005
dorantes@mac.com
 
Posts: n/a
Default gpg help

what's the best way to import keys from pgp (public & secret), do I
need to export first from PGP then import in gpg ?

Reply With Quote
  #2 (permalink)  
Old 07-05-2005
Neil W Rickert
 
Posts: n/a
Default Re: gpg help

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

dorantes@mac.com writes:

>what's the best way to import keys from pgp (public & secret), do I
>need to export first from PGP then import in gpg ?


Gnupg can directly import the PGP keyrings.

cd $HOME/.pgp ## or wherever pgp keyrings are

gpg --import pubring.pkr
gpg --import secring.skr

After importing, you might need to edit your own key to make it
ultimately trusted.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (SunOS)

iD8DBQFCyvyQvmGe70vHPUMRAlTRAJ9ZLE8u4CmswxexCRNgvS xpr0cPwQCggtCw
Z3B0sLPlxzXHyIM40tAQaEQ=
=H8Tc
-----END PGP SIGNATURE-----

Reply With Quote
  #3 (permalink)  
Old 07-06-2005
dorantes@mac.com
 
Posts: n/a
Default Re: gpg help

thanks !! that worked, now to decrypt a file, what's the exact command
to re-direct the output to a file ? the command I used was: " gpg
--decrypt SOMEFILENAME.pgp " and everything scrolled across the screen
really fast.

thanks...

Reply With Quote
  #4 (permalink)  
Old 07-06-2005
dorantes@mac.com
 
Posts: n/a
Default Re: gpg help

thanks...is there a way to decrypt a file thru a script (passing in the
passphrase) ?

Reply With Quote
  #5 (permalink)  
Old 07-06-2005
Newsbox
 
Posts: n/a
Default Re: gpg help

On Tue, 05 Jul 2005 15:45:33 -0700, dorantes wrote:

> thanks !! that worked, now to decrypt a file, what's the exact command
> to re-direct the output to a file ? the command I used was: " gpg
> --decrypt SOMEFILENAME.pgp " and everything scrolled across the screen
> really fast.
>
> thanks...


To redirect any command's output to a file, follow the command with

(command) > outputfile.sav

or whatever name you want.
Reply With Quote
  #6 (permalink)  
Old 07-06-2005
dorantes@mac.com
 
Posts: n/a
Default Re: gpg help

thanks...is there a way to decrypt a file thru a script (passing in the
passphrase), so there is no user invertvention required?

Reply With Quote
  #7 (permalink)  
Old 07-06-2005
Neil W Rickert
 
Posts: n/a
Default Re: gpg help

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

dorantes@mac.com writes:

>thanks...is there a way to decrypt a file thru a script (passing in the
>passphrase), so there is no user invertvention required?


man gpg

(pay particular attention to "--passphrase-fd")

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (SunOS)

iD8DBQFCy0s5vmGe70vHPUMRAunWAJ48gHmZ8jG5rTNLsHyp0E rbSU8YNACZAUn5
OFWL6PGHe4Z8a/wWVXBj/UI=
=qGnP
-----END PGP SIGNATURE-----

Reply With Quote
  #8 (permalink)  
Old 07-06-2005
dorantes@mac.com
 
Posts: n/a
Default Re: gpg help

what does file descriptor n mean ? it says to use 0 for n and the
passphrase will be read from stdin...but what does that mean ?

Reply With Quote
  #9 (permalink)  
Old 07-06-2005
Neil W Rickert
 
Posts: n/a
Default Re: gpg help

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

dorantes@mac.com writes:

>what does file descriptor n mean ? it says to use 0 for n and the
>passphrase will be read from stdin...but what does that mean ?


When you open a file in unix, you are given a file descriptor.

This gpg option is really intended for use by a program
that

opens a pipe
forks a child process to run gpg
parent writes the pass phrase into the pipe.

In this case the program would know the file descriptor number
from opening the pipe.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (SunOS)

iD8DBQFCzDDwvmGe70vHPUMRAmpBAKDAI9fRCxykX1C9sxwpA+ hh+izaiwCfauQb
vdQVJV7+sgc/NMgSYpv+ujQ=
=3lXh
-----END PGP SIGNATURE-----

Reply With Quote
  #10 (permalink)  
Old 07-06-2005
dorantes@mac.com
 
Posts: n/a
Default Re: gpg help

got it ....it worked...thanks a bunch....

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:17 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0