tietokoneet/files/sops/encrypt-private-key.sh

10 lines
170 B
Bash
Executable File

#!/usr/bin/env sh
recipients=""
for key in admin-encryption-keys/*; do
recipients="--recipient-file $key $recipients";
done
gpg --encrypt --armor $recipients "$@"