python - Openssl key signature results are inconsistent under linux and windows
某草草
某草草 2017-06-20 10:06:23
0
1
1185

Q1: Use under linux

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.

Q2: How to write the above command under Linux if it is processed in python?

ps: I tried a variety of methods, but the signed values ​​are different from those under Linux.

某草草
某草草

reply all(1)
大家讲道理

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template