{"id":16675820,"url":"https://github.com/mpyw/go-ca-bundle-generator","last_synced_at":"2025-09-30T05:30:40.095Z","repository":{"id":90235702,"uuid":"46205584","full_name":"mpyw/go-ca-bundle-generator","owner":"mpyw","description":"Generate Go source that provides latest ca-bundle.crt as an inline byte array","archived":false,"fork":false,"pushed_at":"2021-06-24T14:19:47.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T18:54:59.619Z","etag":null,"topics":["cabundle","certificate","go","golang","tls","tls-certificate"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mpyw.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}},"created_at":"2015-11-15T05:20:38.000Z","updated_at":"2021-06-25T20:45:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"40859c4b-6949-407c-a3cd-607136aee69e","html_url":"https://github.com/mpyw/go-ca-bundle-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpyw%2Fgo-ca-bundle-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpyw%2Fgo-ca-bundle-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpyw%2Fgo-ca-bundle-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpyw%2Fgo-ca-bundle-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpyw","download_url":"https://codeload.github.com/mpyw/go-ca-bundle-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234705418,"owners_count":18874416,"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":["cabundle","certificate","go","golang","tls","tls-certificate"],"created_at":"2024-10-12T13:08:02.052Z","updated_at":"2025-09-30T05:30:34.811Z","avatar_url":"https://github.com/mpyw.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-ca-bundle-generator\n\n## Why use?\n\nSome environments which have **no latest CA information** may cause TLS errors,  \nwhen we try to connect to websites via `https://`.  \nWe need **`ca-bundle.crt`**.\n\nSource: **[https://curl.se/ca/cacert.pem](https://curl.se/ca/cacert.pem)**\n\n## Usage\n\n### Source Generation\n\nExecute `generate.sh` in your project root directory.\n\n```ShellSession\nmpyw@localhost:/path/to/project$ curl https://raw.githubusercontent.com/mpyw/go-ca-bundle-generator/master/generate.sh | bash\n```\n\n### Package API\n\nImport `./cabundle`.  \nNow you can use various levels of API.\n\n#### cabundle.GetCertPool()\n\nreturns `*x509.CertPool` internally using `ca-bundle.crt`.\n\n#### cabundle.GetTlsConfig()\n\nreturns `*tls.Config` internally using `cabundle.GetCertPool()`.\n\n#### cabundle.GetTransport()\n\nreturns `*http.Transport` internally using `cabundle.GetTlsConfig()`.\n\n#### cabundle.GetClient()\n\nreturns `*http.Client` internally using `cabundle.GetTransport()`.\n\n## Test\n\n`go run test.go` sends a dummy request to Twitter API server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpyw%2Fgo-ca-bundle-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpyw%2Fgo-ca-bundle-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpyw%2Fgo-ca-bundle-generator/lists"}