当前位置: 首页 > news >正文

国密证书(gmssl)在Kylin Server V10下安装

1.查看操作系统信息

[root@localhost ~]# cat /etc/.kyinfo 
[dist]
name=Kylin
milestone=Server-V10-GFB-Release-ZF9_01-2204-Build03
arch=arm64
beta=False
time=2023-01-09 11:04:36
dist_id=Kylin-Server-V10-GFB-Release-ZF9_01-2204-Build03-arm64-2023-01-09 11:04:36

[servicekey]
key=0080176

[os]
to=
term=2024-05-16

2.下载软件包

[root@localhost src]# wget https://github.com/guanzhi/GmSSL/archive/refs/tags/v3.1.1.tar.gz

3.解压文件

[root@localhost src]#tar -zxvf v3.1.1.tar.gz

4.进入解压目录

[root@localhost src]# cd GmSSL-3.1.1/

[root@localhost GmSSL-3.1.1]# ls

cmake  CMakeLists.txt  demos  docs  include  INSTALL.md 

LICENSE  README.md  src  tests  tools

5.创建编译目录

[root@localhost GmSSL-3.1.1]# mkdir build

6.进入编译目录

[root@localhost GmSSL-3.1.1]# cd build/

7.生成编译文件

root@localhost build]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/GmSSL ..

-- The C compiler identification is GNU 13.2.0

-- Check for working C compiler: /bin/cc

-- Check for working C compiler: /bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Detecting C compile features

-- Detecting C compile features - done

-- Looking for getentropy

-- Looking for getentropy - found

-- have getentropy

-- Configuring done

-- Generating done

-- Build files have been written to: /usr/local/src/GmSSL-3.1.1/build

8.查看生成后的文件

[root@localhost build]# ls

bin                              CMakeCache.txt                   CMakeFiles                   cmake_install.cmake 

CPackConfig.cmake  CPackSourceConfig.cmake  CTestTestfile.cmake      Makefile

9.编译

[root@localhost build]# make -j $(nproc)

10.编译后测试

[root@localhost build]# make test

Running tests...

Test project /usr/local/src/GmSSL-3.1.1/build

      Start  1: sm4

 1/36 Test  #1: sm4 ..............................   Passed    0.91 sec

      Start  2: sm3

 2/36 Test  #2: sm3 ..............................   Passed    0.00 sec

      Start  3: sm2

 3/36 Test  #3: sm2 ..............................   Passed    1.31 sec

      Start  4: sm9

 4/36 Test  #4: sm9 ..............................   Passed    5.71 sec

      Start  5: zuc

 5/36 Test  #5: zuc ..............................   Passed    0.00 sec

      Start  6: aes

http://www.lryc.cn/news/399663.html

相关文章:

  • 【数据服务篇】法律快车问答数据:为法律智能化铺就道路
  • 各向异性含水层中地下水三维流基本微分方程的推导(二)
  • 2024 微信小程序 学习笔记 第一天
  • PCIe驱动开发(3)— 驱动设备文件的创建与操作
  • 【Redis】简单了解Redis中常用的命令与数据结构
  • IDEA启动Web项目总是提示端口占用
  • JRT打印鉴定记录单
  • 数据处理-Matplotlib 绘图展示
  • Nginx -Web服务器/反向代理/负载均衡
  • 机器人三定律及伦理分析
  • 自动驾驶算法———车道检测(一)
  • 小程序自学教程
  • How do I format markdown chatgpt response in tkinter frame python?
  • vs2019 QT无法打开源文件QModbusTcpClient
  • 初识c++(命名空间,缺省参数,函数重载)
  • 印尼Facebook直播网络需要达到什么要求?
  • 力扣题解(最长回文子串)
  • 数据湖表格式 Hudi/Iceberg/DeltaLake/Paimon TPCDS 性能对比(Spark 引擎)
  • 脚本练习-每5分钟执行一次获取当前服务器的基本情况
  • 技术探索之kotlin浅谈
  • 机器学习之常用优化器
  • 机器学习基本概念,Numpy,matplotlib和张量Tensor知识进一步学习
  • 博客前端项目学习day01
  • java Collections.synchronizedCollection方法介绍
  • 力扣每日一题:3011. 判断一个数组是否可以变为有序
  • ubuntu 上vscode +cmake的debug调试配置方法
  • 使用Redis实现签到功能:Java示例解析
  • tableau标靶图,甘特图与瀑布图绘制 - 9
  • 双向链表专题
  • SpringCoud组件