diff --git a/customscripts/ssh_create_sign_verify b/customscripts/ssh_create_sign_verify index e9402c6..0bc2ff5 100644 --- a/customscripts/ssh_create_sign_verify +++ b/customscripts/ssh_create_sign_verify @@ -96,7 +96,8 @@ ssh-keygen -Y sign -f "$key_priv_path" -n file "$file_to_sign" # create a local allowed_signers file echo "Creating alllowed_singers file at $allowed_signers_path with $key_pub_path and identity $email" ## format: -echo "$email $(cat \"$key_pub_path\")" > "$allowed_signers_path" # dont append, just one off here +pub_key_text="$(cat $key_pub_path)" # text of public key +echo "$email $pub_key_text" > "$allowed_signers_path" # dont append, just one off here # verify sig echo "Verifying signature of $file_to_sign with signature file $sig_file_path for public key $key_pub_path and identitiy $email"