I need signature data in hex form, so I use:
openssl dgst -sha256 -hex -sign ./id_rsa my.data > my.signature
The openssl docs note that:
Hex signatures cannot be verified using openssl. Instead, use "xxd -r" or similar program to transform the hex signature into a binary signature prior to verification. Source
But, when I try to do this ...
echo "$(cat my.signature)" | xxd -r -p > binary.signature
... I get nothing
Can anyone see what I'm doing wrong?