GmSSL implements Chinese national algorithms SM2, SM3, SM4, SM9, and related SSL protocols. It offers CLI tools, language bindings, and support for domestic crypto hardware.
Overview
GmSSL is an open-source cryptographic toolkit developed at Peking University. It covers Chinese national algorithms and standards for secure communication and certificate operations.
Version 3 targets small footprints for embedded use, optional国密-only protocol profiles, TLS 1.3 with RFC 8998 suites, and CMake builds across desktop and mobile toolchains. It provides command-line utilities plus bindings for Go, Java, PHP, and related subprojects.
Capabilities include symmetric and public-key algorithms, certificate and CRL handling, SM2 message envelopes, TLCP and TLS protocol stacks, and interfaces for SKF and SDF hardware. A compatibility layer can help certain applications originally built against OpenSSL.
Installations use cmake build and install steps, producing libgmssl and the gmssl binary. Documentation on the project site describes compliance-oriented deployments for Chinese cryptographic products.
Key features
- SM2 SM3 SM4 SM9 algorithms
- TLCP and TLS stacks
- X.509 certificate tools
- Command-line utilities
- Hardware SKF SDF support
- Cross-platform CMake builds
- Language bindings
- Lightweight embedded builds
Use cases
- 国密 TLS services
- PKI and CA tooling
- Embedded secure modules
- Regulated app cryptography