{"id":13495828,"url":"https://github.com/Subash/mkcert","last_synced_at":"2025-03-28T17:34:01.333Z","repository":{"id":40636654,"uuid":"156951795","full_name":"Subash/mkcert","owner":"Subash","description":"Create self signed ssl certificates without OpenSSL.","archived":false,"fork":false,"pushed_at":"2023-11-07T14:04:49.000Z","size":752,"stargazers_count":138,"open_issues_count":5,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-15T12:46:03.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Subash.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}},"created_at":"2018-11-10T05:47:43.000Z","updated_at":"2024-09-29T17:34:38.000Z","dependencies_parsed_at":"2024-01-16T09:53:04.411Z","dependency_job_id":"b0851842-ecc1-43ee-b182-4b383f9635f8","html_url":"https://github.com/Subash/mkcert","commit_stats":{"total_commits":48,"total_committers":4,"mean_commits":12.0,"dds":0.4375,"last_synced_commit":"6264b0c4c5b3735b4d5d876b0ad6f2456543236e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subash%2Fmkcert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subash%2Fmkcert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subash%2Fmkcert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subash%2Fmkcert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Subash","download_url":"https://codeload.github.com/Subash/mkcert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222182945,"owners_count":16944871,"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-07-31T19:01:38.654Z","updated_at":"2024-10-31T11:30:20.939Z","avatar_url":"https://github.com/Subash.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"Create self signed tls certificates without OpenSSL.\n\n## Install\n\n```\nnpm install -g mkcert\n```\n\n## CLI\n\n### Create a Certificate Authority\n\n```\n$ mkcert create-ca --help\n\n  Options:\n    --organization [value]  organization name (default: \"Test CA\")\n    --country-code [value]  country code (default: \"US\")\n    --state [value]         state name (default: \"California\")\n    --locality [value]      locality address (default: \"San Francisco\")\n    --validity [days]       validity in days (default: 365)\n    --key [file]            output key file (default: \"ca.key\")\n    --cert [file]           output certificate file (default: \"ca.crt\")\n    -h, --help              display help for command\n```\n\n### Create a Certificate\n\n```\n$ mkcert create-cert --help\n\n  Options:\n    --ca-key [file]                  ca private key file (default: \"ca.key\")\n    --ca-cert [file]                 ca certificate file (default: \"ca.crt\")\n    --validity [days]                validity in days (default: 365)\n    --key [file]                     output key file (default: \"cert.key\")\n    --cert [file]                    output certificate file (default: \"cert.crt\")\n    --organization [value]           optional organization name\n    --email [value]                  optional email address\n    --domains, --domain [values...]  domains or ip addresses (default: [\"localhost\",\"127.0.0.1\"])\n    -h, --help                       display help for command\n```\n\n## API\n\n```js\nimport { createCA, createCert } from \"mkcert\";\n\nconst ca = await createCA({\n  organization: \"Hello CA\",\n  countryCode: \"NP\",\n  state: \"Bagmati\",\n  locality: \"Kathmandu\",\n  validity: 365\n});\n\nconst cert = await createCert({\n  ca: { key: ca.key, cert: ca.cert },\n  domains: [\"127.0.0.1\", \"localhost\"],\n  validity: 365\n});\n\nconsole.log(cert.key, cert.cert); // certificate info\nconsole.log(`${cert.cert}${ca.cert}`); // create full chain certificate by merging CA and domain certificates\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSubash%2Fmkcert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSubash%2Fmkcert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSubash%2Fmkcert/lists"}