[Mageia-sysadm] [378] add script to generate gpg key
root at mageia.org
root at mageia.org
Wed Feb 2 21:16:11 CET 2011
Revision: 378
Author: boklm
Date: 2011-02-02 21:16:10 +0100 (Wed, 02 Feb 2011)
Log Message:
-----------
add script to generate gpg key
Added Paths:
-----------
gpg/generate-key.sh
Added: gpg/generate-key.sh
===================================================================
--- gpg/generate-key.sh (rev 0)
+++ gpg/generate-key.sh 2011-02-02 20:16:10 UTC (rev 378)
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+GPGHOMEDIR="./homedir"
+PUBDIR="./public"
+PRIVDIR="./private"
+
+pubkey="$PUBDIR/mageia-board-pubkey.gpg"
+seckey="$PRIVDIR/mageia-board-seckey.gpg"
+
+chmod 700 "$GPGHOMEDIR"
+
+echo "Generate key :"
+gpg --homedir "$GPGHOMEDIR" --batch --gen-key board.batch
+
+echo "Public key :"
+gpg --homedir "$GPGHOMEDIR" --list-keys
+gpg --homedir "$GPGHOMEDIR" --list-keys --fingerprint > "$PUBDIR/mageia-board-fingerprint.txt"
+gpg --homedir homedir --export -a > "$pubkey"
+
+echo "Secret key :"
+gpg --homedir "$GPGHOMEDIR" --list-secret-keys
+gpg --homedir homedir --export-secret-keys -a > "$seckey"
+
+rm -Rf "$GPGHOMEDIR"
+
+#TODO : split secret key using ssss-split
+
Property changes on: gpg/generate-key.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110202/373e94e5/attachment-0001.html>
More information about the Mageia-sysadm
mailing list