Rescue secring

2005-04-19 Thread Philipp Neuhaus
Hi,
my reiserfs partition crashed and I do not have any backup (or
revokation) of one of my keys.

I tried to find the secring with hexedit and I found some data.

But gpg --import always says
"gpg: no valid OpenPGP data found.
gpg: Total number processed: 0"

Does gpg have a fault-tolerant mode or do you know about any keyringtool
that may repair my dumps?

Thanks
Philipp


signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Revocation certificate still valid after changing subkeys?

2005-04-19 Thread Adam Funk
> It applies to the master key only.  You do not need to generate a new
> revocation certificate.  Revoking the master key takes out all UIDs
> and subkeys in one step.

That's what I suspected.  
Thanks,
Adam

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: multiple files for version below 1.2.5

2005-04-19 Thread DBSMITH
Never mind I got it to work.
Since I need two unique decrypted file names I said:

x=0
count=`ls -la /data/files|wc -l`
if count -gt 1
then
  until x -eq count
  do
for i in $/data/files
do
  encryption with my output file with a suffix of .$x
  sleep 1
  let  x+=1
done
  done
else
  encrypt one file
fi


Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
614-566-4145



   
 [EMAIL PROTECTED] 
 h.com 
 Sent by:   To 
 gnupg-users-bounc "Stewart V. Wright" 
 [EMAIL PROTECTED]  <[EMAIL PROTECTED]>   
cc 
   gnupg-users@gnupg.org,  
 04/19/2005 12:31  [EMAIL PROTECTED]   
 PMSubject 
   Re: multiple files for version  
   below 1.2.5 
   
   
   
   
   
   




Stewart,
I am trying to decrypt more than one file if ls -la |wc -l /dir is -gt one.
Thanks for the tips, but my $var variable actually contains both file names
like so:

  for i in $var
  do
echo $i
  done

/psofthr/hr88prd/intf/aflac/inbound/filename1
/psofthr/hr88prd/intf/aflac/inbound/filename2

so I am ok there, but when I placed the echo infront of the gpg string I
found that the same PID is being used.

gpg --passphrase-fd 0 --decrypt --output
/psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH.gpg.319548
/psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH_20050324.TXT.pgp
gpg --passphrase-fd 0 --decrypt --output
/psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH.gpg.319548
/psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH_20050408.TXT.pgp

Finally, in the decryption process you need two uniq filenames b/c there
are two decryption processes which is why I used $$.

  gpg $p $de $outp $dec.$$ $i

Anyone more ideas?  thank you,

Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams





 "Stewart V.
 Wright"
 <[EMAIL PROTECTED]  To
 adelaide.edu.au>  gnupg-users@gnupg.org
 Sent by:   cc
 gnupg-users-bounc
 [EMAIL PROTECTED]  Subject
   Re: multiple files for version
   below 1.2.5
 04/19/2005 11:47
 AM








G'day DBSMITH,

* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [050419 10:37]:
> I am trying to decrypt 2 files on a UNIX machine with:
>
> var=/data/files
> file=file_that_has_my_passphrase
> p='- -passphrase-fd-0'
> outp='- -output'
> de='- -decrypt'
> dec=file
>
>
> for i in $var
> do
>   cat $file |gpg $p $de $outp $dec.$$ $i
>   sleep 1
> done
>
> and the error I get is
> Sorry no terminal at all requested - cat get input.

Hint 1: Use echo to help you debug - i.e.
echo cat $file
echo gpg ..
  That way you can see what your script is _trying_ to do, not what
  you want it to do.

Questions:
  What are you trying to do?  Decrypt all the files in the directory
  "/data/files" ?  This script won't do that.  You are passing
  "/data/files" to GnuPG, not a list of the files IN that directory.
  (You will see this when you use the echo hint above.)

  If you want all of the files inside /data/files, set
  var=/data/files/* and that should work.


Hint 2: I find it useful (others will disagree) to put brackets around
  my variables to let the shell be sure what I want it to do...
  So the line:
for i in $var
  would become
for i in ${var}
  Then there is no confusion when you want to do something like
${var}stuff
  However that is an aside.


Cheers,

S.

(See attached file: att4gqr9.dat)
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
(See attached file: att4gqr9.dat)
___
Gnupg-users mailing list
Gnupg-users@gnupg.org

Re: multiple files for version below 1.2.5

2005-04-19 Thread Stewart V. Wright
G'day Derek,

* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [050419 11:31]:
> Stewart,
> I am trying to decrypt more than one file if ls -la |wc -l /dir is -gt one.
> Thanks for the tips, but my $var variable actually contains both file names
> like so:
> 
>   for i in $var
>   do
> echo $i
>   done
> 
> /psofthr/hr88prd/intf/aflac/inbound/filename1
> /psofthr/hr88prd/intf/aflac/inbound/filename2
> 
> so I am ok there,

What shell are you using?

> but when I placed the echo infront of the gpg string I
> found that the same PID is being used.
> 
> gpg --passphrase-fd 0 --decrypt --output
> /psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH.gpg.319548
> /psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH_20050324.TXT.pgp
> gpg --passphrase-fd 0 --decrypt --output
> /psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH.gpg.319548
> /psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH_20050408.TXT.pgp
> 
> Finally, in the decryption process you need two uniq filenames b/c there
> are two decryption processes which is why I used $$.
> 
>   gpg $p $de $outp $dec.$$ $i
> 
> Anyone more ideas?  thank you,

At the start of your program put
  i=0

Inside the loop put something like
  i=`expr $i + 1`
and then use ${i} as the unique filename addition.


However...

This is _not_ what the error was that you sent in your initial email:

  > and the error I get is
  > Sorry no terminal at all requested - cat get input.


The above fix won't fix this error unless I'm missing the point
entirely.



Cheers,

S.


P.S.  Please don't bother replying to me and the mailing list...


pgpqJKRit9DDg.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: multiple files for version below 1.2.5

2005-04-19 Thread DBSMITH
Stewart,
I am trying to decrypt more than one file if ls -la |wc -l /dir is -gt one.
Thanks for the tips, but my $var variable actually contains both file names
like so:

  for i in $var
  do
echo $i
  done

/psofthr/hr88prd/intf/aflac/inbound/filename1
/psofthr/hr88prd/intf/aflac/inbound/filename2

so I am ok there, but when I placed the echo infront of the gpg string I
found that the same PID is being used.

gpg --passphrase-fd 0 --decrypt --output
/psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH.gpg.319548
/psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH_20050324.TXT.pgp
gpg --passphrase-fd 0 --decrypt --output
/psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH.gpg.319548
/psofthr/hr88prd/intf/aflac/inbound/OHIO_HEALTH_20050408.TXT.pgp

Finally, in the decryption process you need two uniq filenames b/c there
are two decryption processes which is why I used $$.

  gpg $p $de $outp $dec.$$ $i

Anyone more ideas?  thank you,

Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams




   
 "Stewart V.   
 Wright"   
 <[EMAIL PROTECTED]  To 
 adelaide.edu.au>  gnupg-users@gnupg.org   
 Sent by:   cc 
 gnupg-users-bounc 
 [EMAIL PROTECTED]  Subject 
   Re: multiple files for version  
   below 1.2.5 
 04/19/2005 11:47  
 AM
   
   
   
   




G'day DBSMITH,

* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [050419 10:37]:
> I am trying to decrypt 2 files on a UNIX machine with:
>
> var=/data/files
> file=file_that_has_my_passphrase
> p='- -passphrase-fd-0'
> outp='- -output'
> de='- -decrypt'
> dec=file
>
>
> for i in $var
> do
>   cat $file |gpg $p $de $outp $dec.$$ $i
>   sleep 1
> done
>
> and the error I get is
> Sorry no terminal at all requested - cat get input.

Hint 1: Use echo to help you debug - i.e.
echo cat $file
echo gpg ..
  That way you can see what your script is _trying_ to do, not what
  you want it to do.

Questions:
  What are you trying to do?  Decrypt all the files in the directory
  "/data/files" ?  This script won't do that.  You are passing
  "/data/files" to GnuPG, not a list of the files IN that directory.
  (You will see this when you use the echo hint above.)

  If you want all of the files inside /data/files, set
  var=/data/files/* and that should work.


Hint 2: I find it useful (others will disagree) to put brackets around
  my variables to let the shell be sure what I want it to do...
  So the line:
for i in $var
  would become
for i in ${var}
  Then there is no confusion when you want to do something like
${var}stuff
  However that is an aside.


Cheers,

S.

(See attached file: att4gqr9.dat)
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


att4gqr9.dat
Description: Binary data
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: multiple files for version below 1.2.5

2005-04-19 Thread Stewart V. Wright
G'day DBSMITH,

* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [050419 10:37]:
> I am trying to decrypt 2 files on a UNIX machine with:
> 
> var=/data/files
> file=file_that_has_my_passphrase
> p='- -passphrase-fd-0'
> outp='- -output'
> de='- -decrypt'
> dec=file
> 
> 
> for i in $var
> do
>   cat $file |gpg $p $de $outp $dec.$$ $i
>   sleep 1
> done
> 
> and the error I get is
> Sorry no terminal at all requested - cat get input.

Hint 1: Use echo to help you debug - i.e.  
echo cat $file
echo gpg ..
  That way you can see what your script is _trying_ to do, not what
  you want it to do.

Questions:
  What are you trying to do?  Decrypt all the files in the directory
  "/data/files" ?  This script won't do that.  You are passing
  "/data/files" to GnuPG, not a list of the files IN that directory.
  (You will see this when you use the echo hint above.)

  If you want all of the files inside /data/files, set
  var=/data/files/* and that should work.


Hint 2: I find it useful (others will disagree) to put brackets around
  my variables to let the shell be sure what I want it to do...
  So the line:
for i in $var
  would become
for i in ${var}
  Then there is no confusion when you want to do something like
${var}stuff
  However that is an aside.


Cheers,

S.



pgp0F5Kp21hka.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


multiple files for version below 1.2.5

2005-04-19 Thread DBSMITH
I am trying to decrypt 2 files on a UNIX machine with:

var=/data/files
file=file_that_has_my_passphrase
p='- -passphrase-fd-0'
outp='- -output'
de='- -decrypt'
dec=file


for i in $var
do
  cat $file |gpg $p $de $outp $dec.$$ $i
  sleep 1
done

and the error I get is
Sorry no terminal at all requested - cat get input.

I looked in the archives and saw the - -multifile option but I am on
version 1.2.1 for AIX 5.2
here is my conf file

no-tty
no-secmem-warning
no-mdc-warning

Any ideas?

thanks
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams



___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


fixing a corrup keyring

2005-04-19 Thread folkert
Hi,

I have a keyring with quiet a few keys (thousands) and now something
is wrong with it:
gpg --list-keys gives
gpg: O j: mpi crosses packet border
secmem usage: 1408/1408 bytes in 2/2 blocks of pool 1408/32768
Aborted
after a while.

How can I fix this keychain? Are there any automatic tools?


Folkert van Heusden

Auto te koop, zie: http://www.vanheusden.com/daihatsu.php
Op zoek naar een IT of Finance baan? Mail me voor de mogelijkheden.

 UNIX admin? Then give MultiTail (http://vanheusden.com/multitail/) 
 a try, it brings monitoring logfiles to a different level! See 
 http://vanheusden.com/multitail/features.html for a feature-list.  

Phone: +31-6-41278122, PGP-key: 1F28D8AE
Get your PGP/GPG key signed at www.biglumber.com!


signature.asc
Description: Digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users