usar la llave privada

This commit is contained in:
f 2022-03-14 16:23:45 -03:00
parent fa32b2bf37
commit aca3d0fba1

View file

@ -21,7 +21,7 @@ sign_file () {
local _file="$1"
test ! -f "$_file" && return 1
test -f "$_file.sig" || ssh-keygen -Y sign -f ~/.ssh/id_ed25519 -n file "$_file" 2>&1 >/dev/null
test -f "$_file.sig" || ssh-keygen -Y sign -f "$private_key" -n file "$_file" 2>&1 >/dev/null
cat "${_file}.sig" | grep -v SIGNATURE | tr -d "\n"
}