/[soft]/gpg/generate-key
ViewVC logotype

Annotation of /gpg/generate-key

Parent Directory Parent Directory | Revision Log Revision Log


Revision 379 - (hide annotations) (download) (as text)
Wed Feb 2 22:41:18 2011 UTC (13 years, 2 months ago) by boklm
Original Path: gpg/generate-key.sh
File MIME type: application/x-sh
File size: 741 byte(s)
print the date
1 boklm 378 #!/bin/sh
2    
3     GPGHOMEDIR="./homedir"
4     PUBDIR="./public"
5     PRIVDIR="./private"
6    
7     pubkey="$PUBDIR/mageia-board-pubkey.gpg"
8     seckey="$PRIVDIR/mageia-board-seckey.gpg"
9    
10 boklm 379 echo 'Today is :'
11     date
12     echo '(check if the date is correct and press enter)'
13     read z
14    
15 boklm 378 chmod 700 "$GPGHOMEDIR"
16    
17     echo "Generate key :"
18     gpg --homedir "$GPGHOMEDIR" --batch --gen-key board.batch
19    
20     echo "Public key :"
21     gpg --homedir "$GPGHOMEDIR" --list-keys
22     gpg --homedir "$GPGHOMEDIR" --list-keys --fingerprint > "$PUBDIR/mageia-board-fingerprint.txt"
23     gpg --homedir homedir --export -a > "$pubkey"
24    
25     echo "Secret key :"
26     gpg --homedir "$GPGHOMEDIR" --list-secret-keys
27     gpg --homedir homedir --export-secret-keys -a > "$seckey"
28    
29     rm -Rf "$GPGHOMEDIR"
30    
31     #TODO : split secret key using ssss-split
32    

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30