I'm trying to figure out the most simple way to digitally sign a string of hex values using a private key also represented by a string of hex values. I'm open to command line, or a script, but preferably using openssl
cli.
Example:
- string to sign:
1333183ddf384da83ed49296136c70d206ad2b19331bf25d390e69b222165e37
- private key:
a675c86089e0622c112379906f5cf19ee336575af1bfa1de558051312db9afdc
Hoping there is a command like:
$ openssl sign -msg=1333183ddf384da83ed49296136c70d206ad2b19331bf25d390e69b222165e37 -privkey=a675c86089e0622c112379906f5cf19ee336575af1bfa1de558051312db9afdc