-
I have be unable to use process substitution with OpenSSL when doing so via The command in question is the following (with a valid credential replacing mock value): echo "something to sign" | openssl dgst -binary -sha256 -sign <(echo "credential") When run via Could not read private key from /dev/fd/63 Again I stress, the same command above works flawlessly when run using Now the question becomes can this behaviour be attributed to OpenSSL it self, or would this be due to some quirk in the implementations of the shells? I ask since there are numerous examples online showing OpenSSL being used with process substitution, indicating that for some this clearly does work when used with System informationUbuntu 22.04 - 5.19.0-46-generic |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It feels very silly now but it turns out that the differences in behaviour were due to backslashes in the credential payload, and |
Beta Was this translation helpful? Give feedback.
It feels very silly now but it turns out that the differences in behaviour were due to backslashes in the credential payload, and
bash
requiring interpretation of backslash escapes to be turned on via the -e flag (i.e using... <(echo -e "credentials")
.