Detached signature on multiple files?

David Shaw dshaw@jabberwocky.com
Thu Aug 15 03:05:02 2002


On Wed, Aug 14, 2002 at 07:22:56PM -0500, Greg Strong wrote:
> DS> I don't have a windows box in front of me, but it should work the
> DS> same way there.  I believe the problem you were having was using
> DS> "-sb" to sign, and not just plain "-b".
> 
> What I did was create a separate public & secret key ring. In GPGShell I
> created a separate options file which points the new key rings. I
> imported the public & secret key I wanted to use to sign multiple files
> into the new public public & secret key rings. I then removed the
> password completely. For good measure I save the GnuPG preferences in
> GPGkeys, then I exited GPGtray & GPGkeys of GPGshell. I started GPGtray
> & GPGkeys again. I opened up a DOS box on Win98. I changed directories
> to where the multiple files are located to which I want signatures for
> each *.doc file. I ran the command:
> 
> gpg -b *.doc
> 
> Of the 5 doc files only the last was signed with the above command. So
> do you see anything wrong with what I did that prevented multiple
> signatures?

I'm sorry - I misremembered what multiple files for -b does.  Now that
I look at it again, this will not work.  When you specify -b with
multiple files, you are actually signing all the files together
(i.e. "gpg -b a b c" signs a concatenated with b concatenated with c).

David
-- 
   David Shaw  |  dshaw@jabberwocky.com  |  WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson