echo aaaaa | openssl rsautl -sign -inkey xxxx.pem | openssl enc -base64
The value obtained is
different from the value obtained by the same operation under windows.
ps: I tried a variety of methods, but the signed values are different from those under Linux.
大家讲道理2017-06-20 10:08:23
The output result of "echo aaaaa" is carried back to the carriage, that is, "aaaaan". To output the pure string "aaaaa", you need to use "echo -n aaaaa". I am not sure if this is the reason. It is for reference only