{"id":74573,"library":"tjfoc-gmtls","title":"GM/TLS Go Implementation","description":"Implements Chinese national cryptographic standards (SM2/SM3/SM4) for TLS connections.","status":"active","version":"1.2.1","language":"go","source_language":null,"source_url":"https://github.com/tjfoc/gmtls","tags":["gmtls","sm2","sm3","sm4","cryptography","china"],"install":[{"cmd":"go get github.com/tjfoc/gmtls","lang":"bash","label":"Install github.com/tjfoc/gmtls"}],"dependencies":[],"imports":[{"symbol":"gmtls","correct":"github.com/tjfoc/gmtls"}],"quickstart":{"code":"package main\n\nimport (\n\t\"crypto/tls\"\n\t\"fmt\"\n\t\"github.com/tjfoc/gmtls\"\n)\n\nfunc main() {\n\tconfig := &tls.Config{\n\t\tInsecureSkipVerify: true,\n\t}\n\tconn, err := gmtls.Dial(\"tcp\", \"example.com:443\", config)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tdefer conn.Close()\n\tfmt.Println(\"Connected with GM/TLS\")\n}","lang":"go","description":"Establishes a GM/TLS connection to a server."},"warnings":[{"fix":"Ensure the server also supports GM/TLS.","message":"Only supports Chinese cryptographic standards; not compatible with standard TLS.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'china':18 'chines':5 'connect':12 'cryptograph':7 'cryptographi':17 'gm/tls':1 'gmtls':13 'go':2 'implement':3,4 'nation':6 'sm2':14 'sm2/sm3/sm4':9 'sm3':15 'sm4':16 'standard':8 'tls':11","created_at":"2026-06-17T19:05:22.450322+00:00","updated_at":"2026-06-17T19:05:22.450322+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/tjfoc/gmtls","github":"https://github.com/tjfoc/gmtls","docs":"https://pkg.go.dev/github.com/tjfoc/gmtls#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}