{"id":21113873,"url":"https://github.com/wux1an/fake-cert","last_synced_at":"2025-03-14T10:26:15.920Z","repository":{"id":176686634,"uuid":"640977461","full_name":"wux1an/fake-cert","owner":"wux1an","description":"generates random TLS certificates 🎊","archived":false,"fork":false,"pushed_at":"2023-05-15T14:49:23.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T04:41:34.619Z","etag":null,"topics":["certificate","fake","fake-cert","fake-certificate","https","https-server","server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wux1an.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-15T14:15:50.000Z","updated_at":"2023-05-15T14:46:02.000Z","dependencies_parsed_at":"2024-08-15T10:01:20.524Z","dependency_job_id":null,"html_url":"https://github.com/wux1an/fake-cert","commit_stats":null,"previous_names":["wux1an/fake-cert"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wux1an%2Ffake-cert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wux1an%2Ffake-cert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wux1an%2Ffake-cert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wux1an%2Ffake-cert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wux1an","download_url":"https://codeload.github.com/wux1an/fake-cert/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243560632,"owners_count":20310965,"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","fake","fake-cert","fake-certificate","https","https-server","server"],"created_at":"2024-11-20T01:59:15.451Z","updated_at":"2025-03-14T10:26:15.914Z","avatar_url":"https://github.com/wux1an.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚒️ fake-cert\n\nThis repository is a Go library that generates random TLS certificates 🎊\n\n## 🏅 Feature\n\nGenerate a random tls certificate with:\n\n- [x] random serial number\n- [x] random subject information\n- [x] random validity, the year, the month and the day are random\n- [ ] random encryption suite (defence [ja3](https://engineering.salesforce.com/tls-fingerprinting-with-ja3-and-ja3s-247362855967/))\n- [ ] copy certificate information from certain website (defence [ja3](https://engineering.salesforce.com/tls-fingerprinting-with-ja3-and-ja3s-247362855967/))\n\n**Preview:**  \n\n\u003cimg src=\"static/random-cert.png\" height=\"500\"/\u003e \n\n## 🎨 Usage\n\nCreate a simple https server:\n\n```ruby\ngo get -u github.com/wux1an/fake-useragent\n```\n\n```go\npackage main\n\nimport (\n\t\"crypto/tls\"\n\t\"github.com/wux1an/fake-cert\"\n\t\"fmt\"\n\t\"net/http\"\n)\n\nfunc main() {\n\thttp.HandleFunc(\"/\", func(writer http.ResponseWriter, request *http.Request) {\n\t\twriter.Write([]byte(\"Your IP Address: \" + request.RemoteAddr))\n\t})\n\n\t// 1. create tls certificate\n\tcerts := cert.Random(2048)\n\tlistener, _ := tls.Listen(\"tcp\", \"127.0.0.1:2023\", \u0026tls.Config{Certificates: []tls.Certificate{certs}})\n\n\t// 2. start a http server\n\tfmt.Println(\"http served at https://127.0.0.1:2023\")\n\t_ = http.Serve(listener, nil)\n}\n```\n\n## 🔗 References\n\n- https://github.com/kost/revsocks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwux1an%2Ffake-cert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwux1an%2Ffake-cert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwux1an%2Ffake-cert/lists"}