# 使用 Homebrew 安装 gmssl

查看 gmssl 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:gmssl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gmssl
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:gmssl
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gmssl>
- **版本:** 3.2.0
- **来源摘要:** Toolkit for Chinese national cryptographic standards
- **主页:** <https://github.com/guanzhi/GmSSL>
- **仓库:** <https://github.com/guanzhi/GmSSL>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/guanzhi/GmSSL/archive/refs/tags/v3.2.0.tar.gz>
- **最后更新:** 2026-06-21T07:05:30Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gmssl (cli)
- gmssl (别名)

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.2.0
- 管理器更新时间: 2026-06-21
- 本地数据: OK
- 上游仓库: https://github.com/guanzhi/GmSSL
- 检测到的最新版本: v3.2.0 (当前)
## 项目历史与用法

GmSSL is an open-source cryptographic toolkit developed by Peking University for Chinese commercial cryptography standards. It provides a gmssl command-line tool, a C library, protocol support, and language bindings around SM2, SM3, SM4, SM9, TLCP, TLS, and related algorithms.

### 项目历史

The public GitHub repository was created in 2014. The README describes GmSSL as a domestic commercial cryptography open-source library independently developed by Peking University, covering national cryptographic algorithms, standards, secure communication protocols, mainstream operating systems and processors, cryptographic keys, and cryptographic cards.

The 3.x series was a major rewrite. The README states that GmSSL 3 reduced memory needs and binary size, removed the OpenSSL-compatible API from the core, adopted CMake, targeted embedded environments, and added a separate OpenSSL compatibility layer for applications such as Nginx.

GmSSL releases show a 3.0.0 release in 2022, 3.1.x releases in 2023, and 3.2.0 in 2026. The README's changelog for 3.1.1 onward includes TLS 1.3 work, TLCP support, post-quantum algorithms, command-line options for cryptographic operations, performance improvements, and removal of broken algorithms such as RC4 and MD5.

### 采用历史

GmSSL's adoption is tied to compliance and interoperability needs around Chinese national cryptographic standards. Its README emphasizes SM algorithms, TLCP, RFC 8998 TLS 1.3 cipher suites, hardware interfaces such as SDF and SKF, and language bindings for Java, PHP, Go, Python, Rust, and Node.js.

Homebrew packaging gives macOS and Unix-like developers a convenient way to test the gmssl CLI and library without building the full CMake project manually. The GitHub repository's large star and fork counts also indicate broader interest than a single-vendor compliance sample.

### 使用方式

Practitioners build GmSSL with CMake, install the gmssl command-line tool and libgmssl, and use it to exercise SM-family algorithms, certificate workflows, digital envelopes, TLS/TLCP protocol support, and benchmark tests.

Application developers use the C library or language bindings when they need Chinese commercial cryptography support in services, embedded systems, mobile platforms, or compatibility layers for existing OpenSSL-oriented software.

### 为什么软件包爱好者会关心

GmSSL is package-significant because cryptographic standards support is hard to vendor casually. A package-managed build gives users a repeatable toolkit for SM2, SM3, SM4, SM9, TLCP, and TLS experiments without treating a security-sensitive C library as a one-off source checkout.

It also shows a common packaging tension in crypto: users want a familiar OpenSSL-like CLI surface, but the project deliberately changed APIs in GmSSL 3 and moved OpenSSL compatibility into a separate layer.

### 时间线

- 2014: Public GitHub repository created.
- 2018: GMBrowser v0.1 release published in the repository release stream.
- 2022: GmSSL 3.0.0 released.
- 2023: GmSSL 3.1.x releases published.
- 2026: GmSSL 3.2.0 released.

### Related projects

- OpenSSL is related through the compatibility-layer discussion in the README.
- GmSSL-Java, GmSSL-PHP, GmSSL-Go, GmSSL-Python, gmssl-rs, and GmSSL-Nodejs provide language bindings around the core library.
- SoftSDF is a related software SDF module for development and testing.

### 来源

- <https://api.github.com/repos/guanzhi/GmSSL>
- <https://github.com/guanzhi/GmSSL>
- <https://github.com/guanzhi/GmSSL/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gmssl
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Shares pkgdb curated category or tags: cli, cryptography, security, ssl, tls.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, cryptography, security, ssl, tls.
- [mbedtls](https://pkg.so/zh-hans/brew/mbedtls/) - Shares pkgdb curated category or tags: cli, cryptography, security, ssl, tls.
- [openssl@4](https://pkg.so/zh-hans/brew/openssl-4/) - Shares pkgdb curated category or tags: cli, cryptography, security, ssl, tls.
- [openssl@3.5](https://pkg.so/zh-hans/brew/openssl-3-5/) - Shares pkgdb curated category or tags: cli, cryptography, security, ssl, tls.
- [openssl@3.0](https://pkg.so/zh-hans/brew/openssl-3-0/) - Shares pkgdb curated category or tags: cli, cryptography, security, ssl, tls.
- [libressl](https://pkg.so/zh-hans/brew/libressl/) - Shares pkgdb curated category or tags: cli, cryptography, security, ssl, tls.
- [wolfssl](https://pkg.so/zh-hans/brew/wolfssl/) - Shares pkgdb curated category or tags: cli, cryptography, security, ssl, tls.
- [aws-lc](https://pkg.so/zh-hans/brew/aws-lc/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, cryptographic, cryptography, security, tls.
- [sslscan](https://pkg.so/zh-hans/brew/sslscan/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, security, ssl, tls.
- [tlsx](https://pkg.so/zh-hans/brew/tlsx/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, security, ssl, tls.

## Combined YAML source

View the package source record on GitHub. [combined/gmssl.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gmssl.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
