1
0
mirror of https://github.com/5im-0n/sshenc.sh.git synced 2025-08-02 11:20:05 +02:00

add quotes

This commit is contained in:
s2
2017-10-26 15:14:56 +02:00
parent 9d92ea2529
commit 797c482cd2

View File

@@ -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")"