1 |
This directory contains some scripts used to generate and use GPG keys |
2 |
for Mageia. |
3 |
|
4 |
To use them, gpg and sss packages needs to be installed. |
5 |
|
6 |
- generate-key : generate a new GPG key, copy the public key in ./public |
7 |
directory. The private key is encrypted and copied in file |
8 |
./private/mageia-board-seckey.gpg. The password is split in 6 parts |
9 |
using "Shamir's Secret Sharing Scheme" with this program : |
10 |
http://point-at-infinity.org/ssss/ |
11 |
3 parts are required to combine the password and decrypt the key. |
12 |
|
13 |
- move-part : script used to move on a USB key one part of the password |
14 |
and a copy of the encrypted GPG key. The public directory is also copied. |
15 |
It takes as argument a number (between 1 and 6) and a path. |
16 |
|
17 |
- import-priv-key : this script import the private key in directory |
18 |
./homedir using encrypted key and 3 parts of the password. Copy all |
19 |
password parts in directory ./private/parts, the encrypted key in |
20 |
./private/mageia-board-seckey.gpg, run the script and you should be |
21 |
able to use gpg with "gpg --homedir ./homedir" |
22 |
|
23 |
|
24 |
And the license for all scripts in this directory (except otherwise |
25 |
indicated, or for external programs) : |
26 |
* This program is free software. It comes without any warranty, to |
27 |
* the extent permitted by applicable law. You can redistribute it |
28 |
* and/or modify it under the terms of the Do What The Fuck You Want |
29 |
* To Public License, Version 2, as published by Sam Hocevar. See |
30 |
* http://sam.zoy.org/wtfpl/COPYING for more details. |