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:
@@ -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")"
|
||||
|
Reference in New Issue
Block a user