{"id":17299904,"url":"https://github.com/twmb/tlscfg","last_synced_at":"2025-04-14T12:34:09.536Z","repository":{"id":57623799,"uuid":"397395976","full_name":"twmb/tlscfg","owner":"twmb","description":"Easy *tls.Config initialization for Go","archived":false,"fork":false,"pushed_at":"2023-01-11T21:21:29.000Z","size":23,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T01:50:41.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twmb.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}},"created_at":"2021-08-17T21:30:38.000Z","updated_at":"2024-07-01T17:12:23.000Z","dependencies_parsed_at":"2023-02-09T07:02:10.711Z","dependency_job_id":null,"html_url":"https://github.com/twmb/tlscfg","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twmb%2Ftlscfg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twmb%2Ftlscfg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twmb%2Ftlscfg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twmb%2Ftlscfg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twmb","download_url":"https://codeload.github.com/twmb/tlscfg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248881980,"owners_count":21176950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-15T11:24:26.279Z","updated_at":"2025-04-14T12:34:09.500Z","avatar_url":"https://github.com/twmb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"tlscfg\n=====\n\nThis repo provides an option-driven Go package that simplifies initializing a\nwell configured `*tls.Config`.\n\nInitializing a `*tls.Config` is a rote task, and often good, secure defaults\nare not so obvious. This package aims to eliminate the chore of initializing a\n`*tls.Config` correctly and securely.\n\nNew returns a valid config with system certificates and tls v1.2+ ciphers. The\nWith functions can be used to further add certificates or override settings as\nappropriate.\n\nUsage:\n\n```go\ncfg, err := tlscfg.New(\n        tlscfg.MaybeWithDiskCA( // optional CA\n                *flagCA,\n                tlscfg.ForClient,\n        ),\n        tlscfg.WithDiskKeyPair( // required client cert+key pair\n                \"cert.pem\",\n                \"key.pem\",\n        ),\n)\nif err != nil {\n        // handle\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwmb%2Ftlscfg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwmb%2Ftlscfg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwmb%2Ftlscfg/lists"}