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

Annotation of /gpg/generate-key

Parent Directory Parent Directory | Revision Log Revision Log


Revision 403 - (hide annotations) (download)
Thu Feb 3 18:31:48 2011 UTC (13 years, 1 month ago) by boklm
File size: 748 byte(s)
don't filter \n and \r as we're now saving passphrase in hex
1 boklm 378 #!/bin/sh
2    
3 boklm 392 . ./config
4 boklm 378
5 boklm 379 echo 'Today is :'
6     date
7     echo '(check if the date is correct and press enter)'
8     read z
9    
10 boklm 403 mkdir -p "$GPGHOMEDIR"
11 boklm 378 chmod 700 "$GPGHOMEDIR"
12    
13     echo "Generate key :"
14 boklm 380 gpg --homedir "$GPGHOMEDIR" --batch --gen-key "$INPUTDIR/board.batch"
15 boklm 378
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 boklm 384 echo "Generate passphrase"
28 boklm 390 ./random-passphrase > "$passphrase"
29     gpg -c --passphrase-file "$passphrase" "$seckey"
30     rm -f "$seckey"
31 boklm 384
32 boklm 403 ./split-passphrase
33 boklm 378

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.30