From 797c482cd2cb324da254c5f93531a8278cd805ca Mon Sep 17 00:00:00 2001 From: s2 Date: Thu, 26 Oct 2017 15:14:56 +0200 Subject: [PATCH] add quotes --- sshencdec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshencdec.sh b/sshencdec.sh index e45c63c..7614ce7 100755 --- a/sshencdec.sh +++ b/sshencdec.sh @@ -55,7 +55,7 @@ if [[ -e "$public_key" ]]; then openssl rand 32 > $temp_file_key if openssl rsautl -encrypt -pubin -inkey <(ssh-keygen -f "$public_key" -e -m PKCS8) -in "$temp_file_key" -out "$temp_file_key.enc"; then - if openssl enc -aes-256-cbc -salt -pass file:$temp_file_key > "$temp_file"; then + if openssl enc -aes-256-cbc -salt -pass file:"$temp_file_key" > "$temp_file"; then echo "-- encrypted with https://git.e.tern.al/s2/sshencdec" echo "-- key" echo "$(openssl base64 -in "$temp_file_key.enc")"