{"id":16763896,"url":"https://github.com/yingzhuo/certificate-key-generator","last_synced_at":"2026-04-16T12:03:15.186Z","repository":{"id":248606386,"uuid":"828742551","full_name":"yingzhuo/certificate-key-generator","owner":"yingzhuo","description":"this helper generate certificate and key(s) for you.","archived":false,"fork":false,"pushed_at":"2024-07-20T10:05:48.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T11:11:47.944Z","etag":null,"topics":["bash","https","java","jwt","keystore","keytool","openssl","pem","pkcs12","pkcs8","self-signed-certificate","shell","signature","spring-boot","spring-security","ssl","tls","truststore","two-way-ssl-authentication","x509"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yingzhuo.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-07-15T03:22:42.000Z","updated_at":"2024-07-20T10:05:51.000Z","dependencies_parsed_at":"2024-07-20T11:24:04.593Z","dependency_job_id":"e1af0c39-d074-4036-8fa8-275bbe6fe5b4","html_url":"https://github.com/yingzhuo/certificate-key-generator","commit_stats":null,"previous_names":["yingzhuo/certificate-key-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yingzhuo/certificate-key-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingzhuo%2Fcertificate-key-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingzhuo%2Fcertificate-key-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingzhuo%2Fcertificate-key-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingzhuo%2Fcertificate-key-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yingzhuo","download_url":"https://codeload.github.com/yingzhuo/certificate-key-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingzhuo%2Fcertificate-key-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31884929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["bash","https","java","jwt","keystore","keytool","openssl","pem","pkcs12","pkcs8","self-signed-certificate","shell","signature","spring-boot","spring-security","ssl","tls","truststore","two-way-ssl-authentication","x509"],"created_at":"2024-10-13T05:23:52.057Z","updated_at":"2026-04-16T12:03:15.169Z","avatar_url":"https://github.com/yingzhuo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Certificate \u0026 Key Generator\n\n本项目用于生成应用程序需要的SSL自签名证书，秘钥等。\u003cbr\u003e\n使用另一款开源工具[KeyStore Explorer](https://keystore-explorer.org/index.html)来生成自签名证书也是一个不错的主意，具体请看此[教程](https://medium.com/@deyjsuka/ssl-certificate-generation-self-signed-and-ca-signed-5289d20b1be8)。如此，您可能用不到本项目。\n\n### (1) 工具\n\n* make\n* openssl\n* keytool\n\n### (2) 用法\n\n```bash\n# 生成自签名根证书\nmake gen-rootca\n\n# 生成服务器端用证书和秘钥\nmake gen-server\n\n# 生成客户端用证书和秘钥 (可选)\n# 如果您的应用程序不需要SSL双向认证，您无需此功能。\nmake gen-client\n\n# 生成JWT签名用证书和秘钥 (可选)\n# 若您的应用程序用不到JWT，您无需此功能。\nmake gen-jwt\n\n# 清除已生成的文件 (根证书和秘钥不会被删除)\nmake clean\n\n# 清除已生成的文件 (根证书和秘钥也被删除) (危险!)\nmake clean-all\n\n# 查看更多功能\nmake usage\n```\n\n### (3) 注意事项\n\n* 可按照实际需求更改[变量文件](/shells/env.sh)。建议您优先使用`PKCS#12`格式的文件。\n* 本程序生成的私钥文件(.pem)都是无加密的。请您注意保管。\n* 本程序生成的KeyStore文件(.p12)的`storepass`和`keypass`是一致的，默认值为`changeit`。\n\n### (4) 参考文献\n\n* [https://www.baeldung.com/x-509-authentication-in-spring-security](https://www.baeldung.com/x-509-authentication-in-spring-security)\n* [https://www.golinuxcloud.com/openssl-subject-alternative-name/](https://www.golinuxcloud.com/openssl-subject-alternative-name/)\n\n### (5) 许可证\n\n* [Apache-2.0](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingzhuo%2Fcertificate-key-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyingzhuo%2Fcertificate-key-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingzhuo%2Fcertificate-key-generator/lists"}