# From http://stackoverflow.com/a/18359743/318752

openssl dgst -md5 -sign id_rsa -out message.sig.rsa.md5 message
openssl dgst -md5 -verify id_rsa.pem -signature message.sig.rsa.md5 message


openssl dgst -sha1 -sign id_rsa -out message.sig.rsa.sha1 message
openssl dgst -sha1 -verify id_rsa.pem -signature message.sig.rsa.sha1 message

openssl dgst -sha1 -sign id_dsa -out message.sig.dsa.sha1 message
openssl dgst -sha1 -verify id_dsa.pem -signature message.sig.dsa.sha1 message

openssl dgst -sha1 -sign id_ecdsa -out message.sig.ecdsa.sha1 message
openssl dgst -sha1 -verify id_ecdsa.pem -signature message.sig.ecdsa.sha1 message

openssl dgst -sha1 -sign id_ecdsa384 -out message.sig.ecdsa384.sha1 message
openssl dgst -sha1 -verify id_ecdsa384.pem -signature message.sig.ecdsa384.sha1 message

openssl dgst -sha1 -sign id_ecdsa521 -out message.sig.ecdsa521.sha1 message
openssl dgst -sha1 -verify id_ecdsa521.pem -signature message.sig.ecdsa521.sha1 message


openssl dgst -sha256 -sign id_rsa -out message.sig.rsa.sha256 message
openssl dgst -sha256 -verify id_rsa.pem -signature message.sig.rsa.sha256 message

openssl dgst -sha256 -sign id_dsa -out message.sig.dsa.sha256 message
openssl dgst -sha256 -verify id_dsa.pem -signature message.sig.dsa.sha256 message

openssl dgst -sha256 -sign id_ecdsa -out message.sig.ecdsa.sha256 message
openssl dgst -sha256 -verify id_ecdsa.pem -signature message.sig.ecdsa.sha256 message

openssl dgst -sha256 -sign id_ecdsa384 -out message.sig.ecdsa384.sha256 message
openssl dgst -sha256 -verify id_ecdsa384.pem -signature message.sig.ecdsa384.sha256 message

openssl dgst -sha256 -sign id_ecdsa521 -out message.sig.ecdsa521.sha256 message
openssl dgst -sha256 -verify id_ecdsa521.pem -signature message.sig.ecdsa521.sha256 message

openssl dgst -sha256 -sign id_ed25519 -out message.sig.ed25519.sha256 message
openssl dgst -sha256 -verify id_ed25519.pem -signature message.sig.ed25519.sha256 message
