{"id":36816768,"url":"https://github.com/x-mod/tlsconfig","last_synced_at":"2026-01-12T13:54:30.002Z","repository":{"id":132582766,"uuid":"204393321","full_name":"x-mod/tlsconfig","owner":"x-mod","description":"more convenient package to create tls.Config","archived":false,"fork":false,"pushed_at":"2020-03-17T14:33:25.000Z","size":1,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T16:48:14.197Z","etag":null,"topics":["mtls","tls-certificate"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x-mod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-08-26T04:05:40.000Z","updated_at":"2023-07-02T08:45:30.000Z","dependencies_parsed_at":"2023-03-13T11:10:32.940Z","dependency_job_id":null,"html_url":"https://github.com/x-mod/tlsconfig","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/x-mod/tlsconfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-mod%2Ftlsconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-mod%2Ftlsconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-mod%2Ftlsconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-mod%2Ftlsconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x-mod","download_url":"https://codeload.github.com/x-mod/tlsconfig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-mod%2Ftlsconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["mtls","tls-certificate"],"created_at":"2026-01-12T13:54:29.922Z","updated_at":"2026-01-12T13:54:29.995Z","avatar_url":"https://github.com/x-mod.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"tlsconfig\n===\n\nCreate tls.Config with Options.\n\n[中文说明](https://gitdig.com/)\n\n# Mutual TLS Authentication\n\n** Server **\n\n````go\nimport \"github.com/x-mod/tlsconfig\"\n\ncf := tlsconfig.New(\n    //服务端 TLS 证书\n    tlsconfig.CertKeyPair(\"out/server.crt\", \"out/server.key\"), \n    //客户端 TLS 证书签名 CA\n    tlsconfig.ClientCA(\"out/exampleCA.crt\"), \n    //验证客户端证书\n    tlsconfig.ClientAuthVerified(),\n)\n\n````\n\n** Client **\n\n````go\n\nimport \"github.com/x-mod/tlsconfig\"\n\ncf := tlsconfig.New(\n    //服务端 TLS 证书签名 CA\n    tlsconfig.CA(\"out/exampleCA.crt\"), \n    //客户端证书 TLS 证书\n    tlsconfig.CertKeyPair(\"out/client.crt\", \"out/client.key\"), \n)\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-mod%2Ftlsconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-mod%2Ftlsconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-mod%2Ftlsconfig/lists"}