Descripe howto upload a key from shell

This commit is contained in:
Martin Vietz 2019-09-15 13:17:47 +00:00 committed by Thomas Oberndörfer
parent 6f21406afd
commit 8a9a7be0c7

View File

@ -130,6 +130,12 @@ POST /api/v1/key
* **publicKeyArmored**: The ascii armored public PGP key to be uploaded * **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) ### Verify uploaded key (via link in email)