{"id":25816528,"url":"https://github.com/alexandermatveev/gentls","last_synced_at":"2025-07-14T00:07:15.184Z","repository":{"id":144424117,"uuid":"491315352","full_name":"AlexanderMatveev/gentls","owner":"AlexanderMatveev","description":"Small package to generate self-signed TLS","archived":false,"fork":false,"pushed_at":"2022-05-12T01:20:15.000Z","size":4,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T11:58:53.544Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/AlexanderMatveev.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":"2022-05-12T00:45:32.000Z","updated_at":"2022-06-06T21:09:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"e913f2d4-b516-4eb6-8719-8142213c194d","html_url":"https://github.com/AlexanderMatveev/gentls","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/AlexanderMatveev/gentls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderMatveev%2Fgentls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderMatveev%2Fgentls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderMatveev%2Fgentls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderMatveev%2Fgentls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexanderMatveev","download_url":"https://codeload.github.com/AlexanderMatveev/gentls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderMatveev%2Fgentls/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265224158,"owners_count":23730342,"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":"2025-02-28T05:34:19.585Z","updated_at":"2025-07-14T00:07:15.171Z","avatar_url":"https://github.com/AlexanderMatveev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gentls: self-signed TLS\n\n[![Workflow](https://github.com/AlexanderMatveev/gentls/actions/workflows/go.yml/badge.svg)](https://github.com/AlexanderMatveev/gentls/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/AlexanderMatveev/gentls?wtf)](https://goreportcard.com/report/github.com/AlexanderMatveev/gentls)\n\n\n## Overview\n\n`gentls` is a small package to generate self-signed TLS for development purposes.\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"crypto/x509/pkix\"\n\t\"fmt\"\n\t\"github.com/AlexanderMatveev/gentls\"\n\t\"log\"\n\t\"net/http\"\n\t\"time\"\n)\n\nfunc main() {\n\tserver := http.Server{\n\t\tAddr: fmt.Sprintf(\":%d\", 3443),\n\t}\n\tstart := time.Now()\n\tlog.Print(\"Generating TLS certs\")\n\tvar err error\n\tif server.TLSConfig, err = gentls.New(1024, pkix.Name{\n\t\tOrganization: []string{\"SelfSigned\"},\n\t\tCountry:      []string{\"RU\"},\n\t\tLocality:     []string{\"Moscow\"},\n\t}, time.Now().AddDate(10, 0, 0)); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tlog.Printf(\"TLS certs generated in %s\", time.Since(start))\n\tlog.Fatal(server.ListenAndServeTLS(\"\", \"\"))\n}\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandermatveev%2Fgentls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandermatveev%2Fgentls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandermatveev%2Fgentls/lists"}