{"id":18464296,"url":"https://github.com/projectdiscovery/sslcert","last_synced_at":"2025-04-08T08:30:59.937Z","repository":{"id":52823074,"uuid":"358617779","full_name":"projectdiscovery/sslcert","owner":"projectdiscovery","description":"Reworked version of https://golang.org/src/crypto/tls/generate_cert.go","archived":false,"fork":false,"pushed_at":"2023-08-21T04:14:04.000Z","size":16,"stargazers_count":12,"open_issues_count":1,"forks_count":4,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-02T21:39:01.542Z","etag":null,"topics":["cli"],"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/projectdiscovery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-04-16T14:01:46.000Z","updated_at":"2025-02-25T03:03:35.000Z","dependencies_parsed_at":"2024-06-18T22:59:26.806Z","dependency_job_id":"1b601c91-8423-44c5-94be-6f66fcd598db","html_url":"https://github.com/projectdiscovery/sslcert","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fsslcert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fsslcert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fsslcert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fsslcert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectdiscovery","download_url":"https://codeload.github.com/projectdiscovery/sslcert/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247804340,"owners_count":20998956,"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":["cli"],"created_at":"2024-11-06T09:09:23.108Z","updated_at":"2025-04-08T08:30:59.699Z","avatar_url":"https://github.com/projectdiscovery.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sslcert\n\n[![License](https://img.shields.io/github/license/projectdiscovery/sslcert)](LICENSE.md)\n![Go version](https://img.shields.io/github/go-mod/go-version/projectdiscovery/sslcert?filename=go.mod)\n[![Release](https://img.shields.io/github/release/projectdiscovery/sslcert)](https://github.com/projectdiscovery/sslcert/releases/)\n[![Checks](https://github.com/projectdiscovery/sslcert/actions/workflows/build-test.yml/badge.svg)](https://github.com/projectdiscovery/sslcert/actions/workflows/build-test.yml)\n[![GoDoc](https://pkg.go.dev/badge/projectdiscovery/sslcert)](https://pkg.go.dev/github.com/projectdiscovery/sslcert)\n\n\n\nsslcert library generates a new tlsconfig usable within go standard library configured with a self-signed certificate generated on the fly. \n\n\n# Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/projectdiscovery/sslcert\"\n)\n\nfunc main() {\n\ttlsOptions := sslcert.DefaultOptions\n\ttlsOptions.Host = \"example.com\"\n\n\t// Create TLSConfig using options\n\ttlsConfig, err := sslcert.NewTLSConfig(tlsOptions)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// using tlsconfig to host http server\n\tserver := \u0026http.Server{\n\t\tAddr:      \":8000\",\n\t\tTLSConfig: tlsConfig,s\n\t}\n\n\thttp.HandleFunc(\"/\", func(w http.ResponseWriter, r *http.Request) {\n\t\tw.Write([]byte(\"Hello World\"))\n\t})\n\n\tfmt.Println(\"Started HTTPS server on \" + server.Addr)\n\tfmt.Println(\"Check it out at https://localhost:8000/\")\n\tif err := server.ListenAndServeTLS(\"\", \"\"); err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectdiscovery%2Fsslcert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectdiscovery%2Fsslcert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectdiscovery%2Fsslcert/lists"}