diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/operations/pass.md | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/content/operations/pass.md b/content/operations/pass.md index 0414e12..b68c783 100644 --- a/content/operations/pass.md +++ b/content/operations/pass.md @@ -31,7 +31,32 @@ gpg2 --export --armor <your email address> It is now publicly accessible at `https://git.deuxfleurs.fr/<your_gitea_username>.gpg` -Inform all the other sysadmins that you have published your key for them to import/verify/sign it. +### Inform the other sysadmins that you have published your key + + +Download the `secrets` repository: + +``` +mkdir -p ~/.password-store +cd ~/.password-store +git clone git@git.deuxfleurs.fr:Deuxfleurs/secrets.git deuxfleurs +``` + + +Get the `<hexa_of_your_gpg_key>`, which you can get with `gpg --list-keys --keyid-format 0xLONG `. +It's in the format `0x0123456789ABCDEF`. +Beware to take the key of your main key (line begins with `pub`, not with `sub`). + +Add your key address to the `Import keys` section of the repo's `README.md`: + +``` +curl https://git.deuxfleurs.fr/<your_gitea_username>.gpg | gpg2 --import # <hexa_of_your_gpg_key> +``` + +Also add your `<hexa_of_your_gpg_key>` to the `.gpg-id` file. + +Now `git commit/pull/push`, and tell yo' friends that you're all set. + ### Import/verify/sign every other sysadmin's key into your keychain @@ -79,14 +104,6 @@ pkg install password-store # FreeBSD *Go to [passwordstore.org](https://www.passwordstore.org/) for more information about pass*. -Download the repository: - -``` -mkdir -p ~/.password-store -cd ~/.password-store -git clone git@git.deuxfleurs.fr:Deuxfleurs/secrets.git deuxfleurs -``` - Finally check that everything works: ```bash |