按照文档手册安装好国密库GmSSL之后,执行命令:

gmssl version

报错:

gmssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

解决方法如下:

添加两条软连接:

ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1

再次运行命令,就OK啦:

GmSSL 2.5.4 - OpenSSL 1.1.0d  19 Jun 2019