Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Spell Signing . . .

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Jason Flatt <jflatt AT sourcemage.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Spell Signing . . .
  • Date: Thu, 13 Oct 2005 23:04:55 -0700

On Thursday 13 October 2005 10:36 am, Arwed von Merkatz wrote:
> On Thu, Oct 13, 2005 at 06:46:13PM +0200, Arwed von Merkatz wrote:
> >
> > To import your gpg key into the grimoire keyring:
> > p4 edit gurus.gpg
> > gpg --export $KEY | gpg --import --no-default-keyring --keyring \
> > /path/to/gurus.gpg
>
> I forgot to add, you should use a RSA pgp key for this so you can use
> SHA512 digests in your signatures. Here's the function I have in my
> ~/.bashrc to create the signatures:
> gurusign() { (
> local FILE="$1"
> local NAME="$(basename $1)"
> local SIG="./$NAME.sig"
> gpg -o "$SIG" --default-key BCD6570E --personal-digest-preference SHA512
> --detach-sign "$FILE" ) }
>
> Replace BCD6570E with whatever your key ID is :)
> You can give it any path and the signature file will end up in the
> current directory.
>
> > To create the hash you have several options:
> > 1) sha512sum from the hashsum spell
> > 2) openssl >= 0.9.8: openssl dgst -sha512 $FILE
> > 3) with gnupg:
> > gpg --print-md sha512 $FILE
> > that doesn't give the output in the format we want though, here's what I
> > use:
> > gpg --print-md sha512 $FILE | tr [A-Z] [a-z] | tr \\n ' ' | tr -d ' ' |
> > cut -d: -f2

Thanks for the info and the snippet of code. And thanks to everyone else for
responding.

--
Jason Flatt
Source Mage GNU/Linux: Linux so advanced, it may as well be magic.
http://www.sourcemage.org/
jflatt AT sourcemage.org

Attachment: pgpU1MwaGGult.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page