Reputation: 31
I am trying to sign a file directly (not computing any hashes) with openssl pkeyutl using a DSA key, and the man page says that the input should be truncated in case it is larger than the expected hash size. However, when I run the command
$ openssl pkeyutl -sign -inkey myDSAkey.pem -in file -out file.sign
i get the following message after entering my password :
Public Key operation error
The error does not happen with files smaller than 20 bytes. I am running OpenSSL 1.1.0g
Thanks in advance for your help!
Upvotes: 2
Views: 288
Reputation: 1
I have the same problem, but only when I use more than 245 characters.
Solution: Do not use more than 245 characters.
Upvotes: 0