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

Contents of /gpg/generate-key

Parent Directory Parent Directory | Revision Log Revision Log


Revision 378 - (show annotations) (download) (as text)
Wed Feb 2 20:16:10 2011 UTC (13 years, 2 months ago) by boklm
Original Path: gpg/generate-key.sh
File MIME type: application/x-sh
File size: 656 byte(s)
add script to generate gpg key
1 #!/bin/sh
2
3 GPGHOMEDIR="./homedir"
4 PUBDIR="./public"
5 PRIVDIR="./private"
6
7 pubkey="$PUBDIR/mageia-board-pubkey.gpg"
8 seckey="$PRIVDIR/mageia-board-seckey.gpg"
9
10 chmod 700 "$GPGHOMEDIR"
11
12 echo "Generate key :"
13 gpg --homedir "$GPGHOMEDIR" --batch --gen-key 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 #TODO : split secret key using ssss-split
27

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.30