{"id":21620238,"url":"https://github.com/bachorp/install-ca-certs","last_synced_at":"2026-04-14T23:33:47.677Z","repository":{"id":257536047,"uuid":"853645426","full_name":"bachorp/install-ca-certs","owner":"bachorp","description":"A single script that can install CA-certificates on multiple platforms","archived":false,"fork":false,"pushed_at":"2025-02-03T10:07:03.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T18:24:58.685Z","etag":null,"topics":["certificate-authority","docker","shell-script","ssl-certificates"],"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/bachorp.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":"2024-09-07T05:56:14.000Z","updated_at":"2025-02-03T10:07:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"30ccc654-b75e-4d71-ab84-fc428742dd80","html_url":"https://github.com/bachorp/install-ca-certs","commit_stats":null,"previous_names":["bachorp/install-ca-certs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bachorp/install-ca-certs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachorp%2Finstall-ca-certs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachorp%2Finstall-ca-certs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachorp%2Finstall-ca-certs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachorp%2Finstall-ca-certs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bachorp","download_url":"https://codeload.github.com/bachorp/install-ca-certs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachorp%2Finstall-ca-certs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31819846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"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":["certificate-authority","docker","shell-script","ssl-certificates"],"created_at":"2024-11-24T23:11:02.483Z","updated_at":"2026-04-14T23:33:47.660Z","avatar_url":"https://github.com/bachorp.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"A single script that can install CA-certificates on multiple platforms.\nWorks with Alpine, Debian, RHEL-, and SUSE-like distributions.\n\n## Usage\n\n```sh\nsudo ./install.sh CA_CERTS_DIR\n```\n\n## Add Certificates to a Docker Image\n\n```dockerfile\nARG BASE\nFROM ${BASE}\n\nUSER root\n\nRUN mkdir /tmp/install-ca-certs\n# TODO: COPY or ADD certificates to /tmp/install-ca-certs/certs\n# TODO: Pin install-ca-certs version\nADD --chmod=700 https://raw.githubusercontent.com/bachorp/install-ca-certs/main/install.sh /tmp/install-ca-certs/install.sh\nRUN /tmp/install-ca-certs/install.sh /tmp/install-ca-certs/certs \u0026\u0026 rm -rf /tmp/install-ca-certs\n\nARG USER\n# ok if empty string\nUSER ${USER}\n```\n\nYou can use `docker inspect --format-string '{{.Config.User}}' \u003cBASE_IMAGE\u003e` to get the required argument `USER`.\n\n## Add Certificates to a Distroless (Debian-like) Docker Image\n\n```dockerfile\nARG BASE\n\nFROM ${BASE} AS base\nFROM debian AS build\n\nCOPY --from=base /etc/ssl/certs /etc/ssl/certs\n\nRUN mkdir /tmp/install-ca-certs\n# TODO: COPY or ADD certificates to /tmp/install-ca-certs/certs\n# TODO: Pin install-ca-certs version\nADD --chmod=700 https://raw.githubusercontent.com/bachorp/install-ca-certs/main/install.sh /tmp/install-ca-certs/install.sh\nRUN /tmp/install-ca-certs/install.sh /tmp/install-ca-certs/certs \u0026\u0026 rm -rf /tmp/install-ca-certs\n\nFROM base\nCOPY --from=build /etc/ssl/certs /etc/ssl/certs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachorp%2Finstall-ca-certs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbachorp%2Finstall-ca-certs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachorp%2Finstall-ca-certs/lists"}