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

Contents of /gpg/generate-key

Parent Directory Parent Directory | Revision Log Revision Log


Revision 392 - (show annotations) (download) (as text)
Thu Feb 3 14:53:29 2011 UTC (13 years, 2 months ago) by boklm
Original Path: gpg/generate-key.sh
File MIME type: application/x-sh
File size: 748 byte(s)
add config file and script to split passphrase using ssss-split
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.30