GMSSL是一款支持国密算法的openssl替代库,官方网站:​​http://gmssl.org/​

MacOS上的安装方法如下

brew install wget
wget https://github.com/guanzhi/GmSSL/archive/master.zip
unzip master.zip
cd GMSSL-master

sed -i '' 's%qw/glob%qw/:glob%g' Configure
sed -i '' 's%qw/glob%qw/:glob%g' test/build.info

make
sudo make install

ln -s /usr/local/gmssl/bin/gmssl /usr/local/bin/gmssl