{"id":47595561,"url":"https://github.com/zig-utils/zig-tls","last_synced_at":"2026-04-01T18:02:34.260Z","repository":{"id":320510938,"uuid":"1082321401","full_name":"zig-utils/zig-tls","owner":"zig-utils","description":"Pure Zig TLS 1.3 implementation for SMTP and other protocols.","archived":false,"fork":false,"pushed_at":"2026-03-26T16:33:14.000Z","size":152,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T01:37:48.731Z","etag":null,"topics":["cryptography","rsa","tls","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zig-utils.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-24T04:22:35.000Z","updated_at":"2026-03-26T16:33:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"daf418ec-abb3-4a45-9c5c-6c0438f5f6c7","html_url":"https://github.com/zig-utils/zig-tls","commit_stats":null,"previous_names":["zig-utils/zig-tls"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zig-utils/zig-tls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-utils%2Fzig-tls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-utils%2Fzig-tls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-utils%2Fzig-tls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-utils%2Fzig-tls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zig-utils","download_url":"https://codeload.github.com/zig-utils/zig-tls/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-utils%2Fzig-tls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptography","rsa","tls","zig"],"created_at":"2026-04-01T18:02:28.930Z","updated_at":"2026-04-01T18:02:34.253Z","avatar_url":"https://github.com/zig-utils.png","language":"Zig","readme":"# zig-tls\n\nPure Zig TLS 1.3 implementation for SMTP and other protocols.\n\n## Features\n\n- TLS 1.3 client and server support\n- Pure Zig implementation (no C dependencies)\n- Non-blocking I/O\n- STARTTLS support for protocol upgrades\n- Certificate and private key management\n\n## Installation\n\nAdd to your `build.zig.zon`:\n\n```zig\n.dependencies = .{\n    .tls = .{\n        .path = \"../zig-tls\",\n    },\n},\n```\n\nAdd to your `build.zig`:\n\n```zig\nconst tls = b.dependency(\"tls\", .{\n    .target = target,\n    .optimize = optimize,\n});\nexe.root_module.addImport(\"tls\", tls.module(\"tls\"));\n```\n\n## Usage\n\n### Server Example\n\n```zig\nconst tls = @import(\"tls\");\n\n// Load certificate and key\nvar cert_key = try tls.config.CertKeyPair.fromFilePathAbsolute(\n    allocator,\n    \"/path/to/cert.pem\",\n    \"/path/to/key.pem\",\n);\ndefer cert_key.deinit(allocator);\n\n// Create TLS connection from stream\nconst tls_conn = try tls.serverFromStream(stream, .{\n    .auth = \u0026cert_key,\n});\n\n// Read/write through TLS\nconst n = try tls_conn.read(buffer);\ntry tls_conn.write(data);\n```\n\n## License\n\nMIT - Based on https://github.com/ianic/tls.zig\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzig-utils%2Fzig-tls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzig-utils%2Fzig-tls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzig-utils%2Fzig-tls/lists"}