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

Annotation of /gpg/generate-key

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.30