From 8a9a7be0c7913e27c38ad1d074fba6d8afa0d271 Mon Sep 17 00:00:00 2001 From: Martin Vietz Date: Sun, 15 Sep 2019 13:17:47 +0000 Subject: [PATCH] Descripe howto upload a key from shell --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 546b51a..e9cd6cd 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,12 @@ POST /api/v1/key * **publicKeyArmored**: The ascii armored public PGP key to be uploaded +E.g. to upload a key from shell: +```bash +curl https://keys.mailvelope.com/api/v1/key --data "{\"publicKeyArmored\":\"$( \ + gpg --armor --export-options export-minimal --export $GPGKEYID | sed ':a;N;$!ba;s/\n/\\n/g' \ + )\"}" +``` ### Verify uploaded key (via link in email)