diff --git a/README.md b/README.md index 87b78cd..72c2f1f 100644 --- a/README.md +++ b/README.md @@ -300,3 +300,12 @@ fingerprint: E4CA86768F176AEB6C01554153AF8D7F149613B1 ``` In this case you need to make upload the gpg key directory `/tmp/newkey` to your server. + +## Migrate from pass/krops + +If you have used [pass](https://www.passwordstore.org) before i.e. in [krops](https://github.com/krebs/krops) than you can use +the following oneliner to convert all your (plaintext) keys to a yaml structure: + +``` console +$ for i in *.gpg; do echo "$(basename $i .gpg): |\n$(pass $(dirname $i)/$(basename $i .gpg)| sed 's/^/ /')"; done +```