1、GmSSL安装包官方下载
参考官方网站:http://gmssl.org/docs/quickstart.html
点击Downloads即可进行安装包下载。
2、关于GmSSL
参考官网:http://gmssl.org/
3、在Ubuntu18.04上进行交叉编译
3.1 下载源代码(zip),解压缩至当前工作目录
$ unzip GmSSL-master.zip
3.2 编译与安装
./Configure --prefix=/opt/openssl --cross-compile-prefix=arm-linux-gnueabihf- no-asm shared linux-armv4
make
make install
/opt/openssl 是编译后的输出目录,也可依据需求进行更换。
因为是arm设备,这里配置目标平台为linux-armv4,其它平台编译方式相似,使用 ./Configure --help 能够显示支持的所有平台。此外,当指定arm平台时,Makefile中不会出现不支持的m64选项,也就无需删除。
3.3 移植到ARM平台
1、将交叉编译后的整个open