{"id":15127681,"url":"https://github.com/soulteary/certs-maker","last_synced_at":"2025-04-12T22:35:56.148Z","repository":{"id":45663275,"uuid":"335651152","full_name":"soulteary/certs-maker","owner":"soulteary","description":"100% Coverage! Lightweight self-signed certificate generator, size between 1.5MB (executable) and 5MB (docker image).","archived":false,"fork":false,"pushed_at":"2025-03-07T08:47:47.000Z","size":939,"stargazers_count":219,"open_issues_count":0,"forks_count":36,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-04T03:03:58.980Z","etag":null,"topics":["certificate","certs","docker","openssl","self-hosted","ssl","time-saver"],"latest_commit_sha":null,"homepage":"https://soulteary.com/2022/10/22/make-docker-tools-image-with-only-3md-self-signed-certificate-certs-maker.html","language":"Go","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/soulteary.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-03T14:29:24.000Z","updated_at":"2025-03-27T00:12:21.000Z","dependencies_parsed_at":"2024-08-04T08:24:25.344Z","dependency_job_id":"d83ee96f-f5fe-42e1-accc-d4c231903400","html_url":"https://github.com/soulteary/certs-maker","commit_stats":{"total_commits":124,"total_committers":5,"mean_commits":24.8,"dds":"0.040322580645161255","last_synced_commit":"9c9057fe81a7304331a95e9ae4ed61d4f0f04244"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fcerts-maker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fcerts-maker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fcerts-maker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fcerts-maker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soulteary","download_url":"https://codeload.github.com/soulteary/certs-maker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248642585,"owners_count":21138351,"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":["certificate","certs","docker","openssl","self-hosted","ssl","time-saver"],"created_at":"2024-09-26T02:05:18.397Z","updated_at":"2025-04-12T22:35:56.125Z","avatar_url":"https://github.com/soulteary.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Certs Maker\n\n[![CodeQL](https://github.com/soulteary/certs-maker/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/soulteary/certs-maker/actions/workflows/github-code-scanning/codeql) [![Release](https://github.com/soulteary/certs-maker/actions/workflows/release.yaml/badge.svg)](https://github.com/soulteary/certs-maker/actions/workflows/release.yaml) [![Docker Image](https://img.shields.io/docker/pulls/soulteary/certs-maker.svg)](https://hub.docker.com/r/soulteary/certs-maker) [![codecov](https://codecov.io/gh/soulteary/certs-maker/branch/main/graph/badge.svg?token=K12L34CSA4)](https://codecov.io/gh/soulteary/certs-maker)\n\n\u003cp style=\"text-align: center;\"\u003e\n  \u003ca href=\"README.md\" target=\"_blank\"\u003eENGLISH\u003c/a\u003e | \u003ca href=\"README_CN.md\"\u003e中文文档\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cimg src=\"logo.png\"\u003e\n\n**Lightweight self-signed certificate generator, size between 1.5MB (executable) and 5MB (docker image).**\n\nGenerate self-hosted or development certificates through simple configuration.\n\n\u003cimg src=\".github/assets.jpg\"\u003e\n\u003cimg src=\".github/dockerhub.jpg\"\u003e\n\n## Quick Start\n\nCreate self-signed certificates supporting `*.lab.com` and `*.data.lab.com` domains with just **\"One Click\"**:\n\n```bash\ndocker run --rm -it -v `pwd`/ssl:/ssl soulteary/certs-maker:v3.8.0 \"--CERT_DNS=lab.com,*.lab.com,*.data.lab.com\"\n# OR use environment:\n# docker run --rm -it -v `pwd`/ssl:/ssl -e \"CERT_DNS=lab.com,*.lab.com,*.data.lab.com\" soulteary/certs-maker:v3.8.0\n```\n\nThe generated certificates will be stored in the `ssl` directory within the execution directory:\n\n```bash\nssl\n├── lab.com.conf\n├── lab.com.der.crt\n├── lab.com.der.key\n├── lab.com.pem.crt\n└── lab.com.pem.key\n```\n\nYou can use PEM or DER format certificates according to your preference.\n\nFor those who prefer file-based configuration, you can use a `docker-compose.yml` file like this:\n\n```yaml\nversion: '2'\nservices:\n\ncerts-maker:\n    image: soulteary/certs-maker:v3.8.0\n    environment:\n      - CERT_DNS=lab.com,*.lab.com,*.data.lab.com\n    volumes:\n      - ./ssl:/ssl\n```\n\nThen, run the following command:\n\n```bash\ndocker-compose up\n# OR\n# docker compose up\n```\n\nTo make the certificate more Kubernetes-friendly, add the `FOR_K8S` parameter:\n\n```bash\ndocker run --rm -it -v `pwd`/ssl:/ssl soulteary/certs-maker:v3.8.0 \"--CERT_DNS=lab.com,*.lab.com,*.data.lab.com --FOR_K8S=ON\"\n# OR\n# docker run --rm -it -v `pwd`/ssl:/ssl -e \"CERT_DNS=lab.com,*.lab.com,*.data.lab.com\" -e \"FOR_K8S=ON\" soulteary/certs-maker:v3.8.0\n```\n\nHere's a K8s-friendly `docker-compose.yml` file:\n\n```yaml\nversion: '2'\nservices:\n\ncerts-maker:\n    image: soulteary/certs-maker:v3.8.0\n    environment:\n      - CERT_DNS=lab.com,*.lab.com,*.data.lab.com\n      - FOR_K8S=ON\n    volumes:\n      - ./ssl:/ssl\n```\n\nTo enhance compatibility with Firefox, include the `FOR_FIREFOX` parameter:\n\n```bash\ndocker run --rm -it -v `pwd`/ssl:/ssl soulteary/certs-maker:v3.8.0 \"--CERT_DNS=lab.com,*.lab.com,*.data.lab.com --FOR_FIREFOX=ON\"\n# OR\n# docker run --rm -it -v `pwd`/ssl:/ssl -e \"CERT_DNS=lab.com,*.lab.com,*.data.lab.com\" -e \"FOR_FIREFOX=ON\" soulteary/certs-maker:v3.8.0\n```\n\nAnd here's a Firefox-friendly `docker-compose.yml` file:\n\n```yaml\nversion: '2'\nservices:\n\ncerts-maker:\n    image: soulteary/certs-maker:v3.8.0\n    environment:\n      - CERT_DNS=lab.com,*.lab.com,*.data.lab.com\n      - FOR_FIREFOX=ON\n    volumes:\n      - ./ssl:/ssl\n```\n\nFor more granular control over certificate details, such as issuing country, province, street, and organization name, refer to the following section on manually adding parameters.\n\n## SSL Certificate Parameters\n\nCustomize your generated certificate by setting environment variables or using Docker CLI arguments.\n\nUsing environment variables:\n\n| Parameter | Name | Use in environment variables |\n| ------ | ------ | ------ |\n| Country Name | CERT_C | `CERT_C=CN` |\n| State Or Province Name | CERT_ST | `CERT_ST=BJ` |\n| Locality Name | CERT_L | `CERT_L=HD` |\n| Organization Name | CERT_O | `CERT_O=Lab` |\n| Organizational Unit Name | CERT_OU | `CERT_OU=Dev` |\n| Common Name | CERT_CN | `CERT_CN=Hello World` |\n| Domains | CERT_DNS | `CERT_DNS=lab.com,*.lab.com,*.data.lab.com` |\n| Issue for K8s | FOR_K8S | `FOR_K8S=ON` |\n| Issue for Firefox | FOR_FIREFOX | `FOR_FIREFOX=ON` |\n| File Owner User | USER | `USER=ubuntu` |\n| File Owner UID | UID | `UID=1234` |\n| File Owner GID | GID | `GID=2345` |\n| Custom certs output dir | DIR | `DIR=./ssl` |\n| Custom certs filename | CUSTOM_FILE_NAME | `CUSTOM_FILE_NAME=filename` |\n| Expire Days | EXPIRE_DAYS | `EXPIRE_DAYS=3650` |\n\nUsing program CLI arguments:\n\n| Parameter | Name | Use in CLI arguments |\n| ------ | ------ | ------ |\n| Country Name | CERT_C | `--CERT_C=CN` |\n| State Or Province Name | CERT_ST | `--CERT_ST=BJ` |\n| Locality Name | CERT_L | `--CERT_L=HD` |\n| Organization Name | CERT_O | `--CERT_O=Lab` |\n| Organizational Unit Name | CERT_OU | `--CERT_OU=Dev` |\n| Common Name | CERT_CN | `--CERT_CN=Hello World` |\n| Domains | CERT_DNS | `--CERT_DNS=lab.com,*.lab.com,*.data.lab.com` |\n| Issue for K8s | FOR_K8S | `--FOR_K8S=ON` |\n| Issue for Firefox | FOR_FIREFOX | `--FOR_FIREFOX=ON` |\n| File Owner User | USER | `--USER=ubuntu` |\n| File Owner UID | UID | `--UID=1234` |\n| File Owner GID | GID | `--GID=2345` |\n| Custom certs output dir | DIR | `--DIR=./ssl` |\n| Custom certs filename | CUSTOM_FILE_NAME | `--CUSTOM_FILE_NAME=filename` |\n| Expire Days | EXPIRE_DAYS | `--EXPIRE_DAYS=3650` |\n\n## Docker Image\n\n[soulteary/certs-maker](https://hub.docker.com/r/soulteary/certs-maker)\n\n## Related Documentation and Tutorials\n\n- [Creating a Lightweight 3MB Docker Image for Self-Signed Certificates: Introducing Certs Maker](https://soulteary.com/2022/10/22/make-docker-tools-image-with-only-3md-self-signed-certificate-certs-maker.html)\n- [A Comprehensive Guide to Creating and Implementing Self-Signed Certificates](https://soulteary.com/2021/02/06/how-to-make-and-use-a-self-signed-certificate.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoulteary%2Fcerts-maker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoulteary%2Fcerts-maker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoulteary%2Fcerts-maker/lists"}