I generated a key-pair using ssh-keygen. They are in two text files, say "abc.txt" and "abc.txt.pub". Now, I want to use the private key to sign a document.
I did not find a way to do it with ssh, so I tried to use gpg:
gpg --sign --default-key=abc.txt features-devsite.txt
but got the following message:
gpg: no default secret key: secret key not available
gpg: signing failed: secret key not available
In this question: How to sign files with Ubuntu command-line tools and my own keys? there is a guide on generating keys with GPG, but I do not see how to sign when the key is in an existing text file.