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

Contents of /gpg/generate-key

Parent Directory Parent Directory | Revision Log Revision Log


Revision 394 - (show annotations) (download)
Thu Feb 3 15:51:13 2011 UTC (10 years, 7 months ago) by boklm
File size: 748 byte(s)
rename generate-key.sh to generate-key
1 #!/bin/sh
2
3 . ./config
4
5 echo 'Today is :'
6 date
7 echo '(check if the date is correct and press enter)'
8 read z
9
10 chmod 700 "$GPGHOMEDIR"
11
12 echo "Generate key :"
13 gpg --homedir "$GPGHOMEDIR" --batch --gen-key "$INPUTDIR/board.batch"
14
15 echo "Public key :"
16 gpg --homedir "$GPGHOMEDIR" --list-keys
17 gpg --homedir "$GPGHOMEDIR" --list-keys --fingerprint > "$PUBDIR/mageia-board-fingerprint.txt"
18 gpg --homedir homedir --export -a > "$pubkey"
19
20 echo "Secret key :"
21 gpg --homedir "$GPGHOMEDIR" --list-secret-keys
22 gpg --homedir homedir --export-secret-keys -a > "$seckey"
23
24 rm -Rf "$GPGHOMEDIR"
25
26 echo "Generate passphrase"
27 ./random-passphrase > "$passphrase"
28 gpg -c --passphrase-file "$passphrase" "$seckey"
29 rm -f "$seckey"
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.28