[Mageia-sysadm] [442] add script to reimport private key using parts

root at mageia.org root at mageia.org
Sun Feb 6 15:41:23 CET 2011


Revision: 442
Author:   boklm
Date:     2011-02-06 15:41:22 +0100 (Sun, 06 Feb 2011)
Log Message:
-----------
add script to reimport private key using parts

Added Paths:
-----------
    gpg/import-priv-key

Added: gpg/import-priv-key
===================================================================
--- gpg/import-priv-key	                        (rev 0)
+++ gpg/import-priv-key	2011-02-06 14:41:22 UTC (rev 442)
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+. ./config
+
+./unsplit-passphrase
+
+mkdir -p "$GPGHOMEDIR"
+chmod 700 "$GPGHOMEDIR"
+
+gpg --decrypt  --passphrase-file "$passphrase" "$seckey_e" > "$seckey"
+rm -f "$passphrase"
+gpg --homedir "$GPGHOMEDIR" --import "$seckey"
+rm -f "$seckey"
+


Property changes on: gpg/import-priv-key
___________________________________________________________________
Added: svn:executable
   + *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110206/dcb7cd54/attachment.html>


More information about the Mageia-sysadm mailing list