http://gmssl.org/docs/quickstart.html
https://www.cnblogs.com/wonz/p/14117225.html
- 下载包(zip)
- 解压
unzip GmSSL-master.zip
- 编译安装
./config
make
sudo make install # 安装
#sudo make uninstall 卸载
- 处理报错
This system (linux-x86_64) is not supported. See file INSTALL for details
这是由于Perl package导致,修改Configure文件
解决方式
use if $^O ne “VMS”, ‘File::Glob’ => qw/glob/;
修改为
use if $^O ne “VMS”, ‘File::Glob’ => qw/:glob/;
Program fragment delivered error ``“glob” is not exported by the File::Glob module
at /mnt/e/secure/GmSSL-master/test/build.info at ./Configure line 1644.
解决方式
原因同上,修改 test/build.info中, 查找File::Glob. 修改后即可生成makefile
按以上方法修改run_tests.pl。
gmssl: symbol lookup error: gmssl: undefined symbol: BIO_debug_callback, version OPENSSL_1_1_0d
解决方式
优先选择设置环境变量方式
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
有些网站提示ldconfig命令, 慎用,一定要慎用
- 验证安装
gmssl version
- sm3 hash加盐
echo -n ellis | gmssl dgst -sm3 -hmac hhhhhh