{"id":16875914,"url":"https://github.com/atompi/self-signature","last_synced_at":"2025-03-19T00:23:49.418Z","repository":{"id":170883227,"uuid":"647149196","full_name":"atompi/self-signature","owner":"atompi","description":"Create self-signature SSL cert via cfssl.","archived":false,"fork":false,"pushed_at":"2024-07-31T08:27:48.000Z","size":19176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T01:37:11.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atompi.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":"2023-05-30T06:59:20.000Z","updated_at":"2024-07-31T08:27:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3f5edef-a84e-42ff-915d-d4b3a4c69bc5","html_url":"https://github.com/atompi/self-signature","commit_stats":null,"previous_names":["atompi/self-signature"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atompi%2Fself-signature","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atompi%2Fself-signature/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atompi%2Fself-signature/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atompi%2Fself-signature/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atompi","download_url":"https://codeload.github.com/atompi/self-signature/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244327363,"owners_count":20435396,"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-13T15:37:28.066Z","updated_at":"2025-03-19T00:23:49.398Z","avatar_url":"https://github.com/atompi.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generate self-signed certs by cfssl\n\n## create dirs\n\n```\nmkdir -p ca out\nchmod 755 bin/*\n```\n\n## generate ca\n\n```\ncd ca\n../bin/cfssl gencert -initca ../json/ca-csr.json|../bin/cfssljson -bare ca\n```\n\n## generate server-csr.json\n\n```\nexport SELF_CN=atompi.cc\ncat ../json/server-csr.json.tmpl | sed \"s/SELF_CN/$SELF_CN/g\" \u003e ../json/$SELF_CN-server-csr.json\n```\n\n## create certs (If necessary, modify the certificate age in ca-config.json)\n\n```\ncd ../out\n../bin/cfssl gencert -ca=../ca/ca.pem -ca-key=../ca/ca-key.pem -config=../json/ca-config.json -profile=peer ../json/$SELF_CN-server-csr.json | ../bin/cfssljson -bare $SELF_CN\n```\n\n## Usage\n\n[USAGE](./USAGE.md)\n\n## Tips\n\n### get binary\n\n```\nmkdir -p bin\nproxy wget https://github.com/cloudflare/cfssl/releases/download/v1.6.5/cfssl-certinfo_1.6.5_linux_amd64 -O bin/cfssl-certinfo\nproxy wget https://github.com/cloudflare/cfssl/releases/download/v1.6.5/cfssljson_1.6.5_linux_amd64 -O bin/cfssljson\nproxy wget https://github.com/cloudflare/cfssl/releases/download/v1.6.5/cfssl_1.6.5_linux_amd64 -O bin/cfssl\n```\n\n### generate default json\n\n```\nbin/cfssl print-defaults config \u003e json/ca-config.json\nbin/cfssl print-defaults csr \u003e json/server-csr.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatompi%2Fself-signature","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatompi%2Fself-signature","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatompi%2Fself-signature/lists"}