I have been experimenting with OpenSSL and OpenSSH and I have been unable to sign and verify using RSA key pairs.
I did the following
Generated key pairs:
$ ssh-genkey -b 2048 -t rsa <key-name>
I then created a message digest by:
$ openssl sha1 -sign <key-name> -out rsasign.bin ~/tmp/test.txt
I attempted to verify the signature using the corresponding public key:
$ openssl sha1 -verify <key-name>.pub -signature rsasign.bin ~/tmp/test.txt
Unfortunately, trying this returns the error:
unable to load key file
Can anyone see any problem with what I'm doing?
Thanks!