openssl升级 由于需要使用sm3 加密,发现老版本不支持sm3加密,因此升级openssl
openssl version #OpenSSL 1.0.2k-fips 26 Jan 2017 tar xzvf openssl-1.1.1-pre5.tar.gz cd openssl-1.1.1-pre5 ./config --prefix=/usr/local/openssl make && make install ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1 ln -s /usr/local/openssl/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1 openssl version #OpenSSL 1.1.1g 21 Apr 2020 echo -n "abc" | openssl dgst -sm3 | awk '{print $2}' #66c7f0f462eeedd9d1f2d46bdc10e4e24167c4875cf2f7a2297da02b8f4ba8e0
标签:1.1,sm3,openssl,升级,so.1,usr,local From: https://www.cnblogs.com/zhangcheng94/p/17589146.html