国密证书(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

相关推荐

  1. 证书(gmssl)Kylin Server V10安装

    2024-07-15 09:54:02       19 阅读
  2. 安全算法 - 算法

    2024-07-15 09:54:02       38 阅读
  3. 基于AnolisOS 8.6的OpenVPN和GmSSLv2算法SSL VPN测试

    2024-07-15 09:54:02       25 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-15 09:54:02       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-15 09:54:02       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-15 09:54:02       57 阅读
  4. Python语言-面向对象

    2024-07-15 09:54:02       68 阅读

热门阅读

  1. GE DS200CVMAG1AEB控制器 处理器 模块

    2024-07-15 09:54:02       22 阅读
  2. 【Go系列】 Sync并发控制

    2024-07-15 09:54:02       25 阅读
  3. 对AAC解码的理解

    2024-07-15 09:54:02       22 阅读
  4. 【Karapathy大神build-nanogpt】Take Away Notes

    2024-07-15 09:54:02       24 阅读
  5. C的分文件编写与动态库

    2024-07-15 09:54:02       26 阅读
  6. Spring Boot中的安全配置与实现

    2024-07-15 09:54:02       20 阅读
  7. 设计模式--抽象工厂模式

    2024-07-15 09:54:02       23 阅读