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

Contents of /gpg/generate-key

Parent Directory Parent Directory | Revision Log Revision Log


Revision 403 - (show annotations) (download)
Thu Feb 3 18:31:48 2011 UTC (10 years, 7 months ago) by boklm
File size: 748 byte(s)
don't filter \n and \r as we're now saving passphrase in hex
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 mkdir -p "$GPGHOMEDIR"
11 chmod 700 "$GPGHOMEDIR"
12
13 echo "Generate key :"
14 gpg --homedir "$GPGHOMEDIR" --batch --gen-key "$INPUTDIR/board.batch"
15
16 echo "Public key :"
17 gpg --homedir "$GPGHOMEDIR" --list-keys
18 gpg --homedir "$GPGHOMEDIR" --list-keys --fingerprint > "$PUBDIR/mageia-board-fingerprint.txt"
19 gpg --homedir homedir --export -a > "$pubkey"
20
21 echo "Secret key :"
22 gpg --homedir "$GPGHOMEDIR" --list-secret-keys
23 gpg --homedir homedir --export-secret-keys -a > "$seckey"
24
25 rm -Rf "$GPGHOMEDIR"
26
27 echo "Generate passphrase"
28 ./random-passphrase > "$passphrase"
29 gpg -c --passphrase-file "$passphrase" "$seckey"
30 rm -f "$seckey"
31
32 ./split-passphrase
33

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.28