Registry / crypto / tjfoc-gmtls

tjfoc-gmtls

JSON →
library1.2.1gogounverified

Implements Chinese national cryptographic standards (SM2/SM3/SM4) for TLS connections.

go get github.com/tjfoc/gmtls
INSTALL
IMPORT
SIG · TJFOC-GMTLS
T
tjfoc-gmtls
cryptogov1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gmtls
✓ github.com/tjfoc/gmtls

Establishes a GM/TLS connection to a server.

package main import ( "crypto/tls" "fmt" "github.com/tjfoc/gmtls" ) func main() { config := &tls.Config{ InsecureSkipVerify: true, } conn, err := gmtls.Dial("tcp", "example.com:443", config) if err != nil { fmt.Println(err) return } defer conn.Close() fmt.Println("Connected with GM/TLS") }
Debug
Known issues
gotchaOnly supports Chinese cryptographic standards; not compatible with standard TLS.
fix
Ensure the server also supports GM/TLS.
affects: all
Upgrade
Version history
1.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
26
Resources