diff --git a/dots/bin/exportGpgKeysToSecrets.sh b/dots/bin/exportGpgKeysToSecrets.sh index c745f9b..5e4c927 100755 --- a/dots/bin/exportGpgKeysToSecrets.sh +++ b/dots/bin/exportGpgKeysToSecrets.sh @@ -26,11 +26,11 @@ fi # zip the content timestamp=$(date +%y%m%d) -zip_file=${tmp_dir}/${timestamp}_gnupgKeys.zip +zip_file=${tmp_dir}/${timestamp}_gnupgKeys.bibL2.zip zip -r "${zip_file}" "${src_dir}/" -i "*.asc" -# gpg encrypt the content -gpg --encrypt --sign --recipient frode@klevstul.com "${zip_file}" +# gpg : symmetric encrypt the content (as we will have no key pair when decrypting) +gpg --symmetric "${zip_file}" # delete the .zip file srm -v "${zip_file}"