{"id":18770825,"url":"https://github.com/gamote/cert127","last_synced_at":"2025-10-14T00:35:15.810Z","repository":{"id":63442097,"uuid":"567310713","full_name":"Gamote/cert127","owner":"Gamote","description":"There is no place like 127.0.0.1 🏠","archived":false,"fork":false,"pushed_at":"2022-12-15T09:50:26.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-27T20:14:56.970Z","etag":null,"topics":["127","cert127","certificate","development","https","local","makecert","mkcert","ssl","tls","trusted"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gamote.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}},"created_at":"2022-11-17T14:20:35.000Z","updated_at":"2023-06-01T08:53:25.000Z","dependencies_parsed_at":"2023-01-29T02:45:13.205Z","dependency_job_id":null,"html_url":"https://github.com/Gamote/cert127","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Gamote/cert127","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fcert127","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fcert127/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fcert127/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fcert127/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gamote","download_url":"https://codeload.github.com/Gamote/cert127/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fcert127/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017355,"owners_count":26086052,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["127","cert127","certificate","development","https","local","makecert","mkcert","ssl","tls","trusted"],"created_at":"2024-11-07T19:21:46.133Z","updated_at":"2025-10-14T00:35:15.795Z","avatar_url":"https://github.com/Gamote.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cert127\n\n[![npm version](https://img.shields.io/npm/v/cert127)](https://www.npmjs.com/package/cert127) [![npm downloads/month](https://img.shields.io/npm/dm/cert127)](https://www.npmjs.com/package/cert127) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Gamote/cert127/blob/main/LICENSE)\n\nSmall utility to generate **🔒 trusted** self-signed certificates for local development.\n\n## Prerequisites\n\nThis package requires `mkcert` to be installed on your system. Please follow the [installation instructions](https://github.com/FiloSottile/mkcert#installation) for your platform.\n\n## Installation\n\n```shell\n# With Yarn\nyarn add cert127\n\n# or with npm\nnpm i cert127\n```\n\n## Usage\n\n```ts\nimport cert127 from 'cert127';\n\nconst { key, cert } = await cert127();\n```\n\n## Example\n\nLet's create a quick Fastify server with the listening socket configured for TLS:\n\n```ts\nimport cert127 from 'cert127';\nimport Fastify from 'fastify';\n\n/**\n * Run the server!\n */\nconst start = async () =\u003e {\n  const fastify = Fastify({ https: await cert127() });\n\n  fastify.get('/secure', (req, reply) =\u003e\n    reply.send(\"There is no place like 127.0.0.1 🏠\"));\n\n  await fastify.listen({ port: 3000 });\n};\n\nvoid start();\n```\n\nNow you can open [https://localhost:3000/secure](https://localhost:3000/secure) in your browser and see:\n\u003e There is no place like 127.0.0.1 🏠\n\n\u003e **IMPORTANT: This will not work on production, as it is meant only for local development.**\n\n## ✨ Roadmap\n\n- [ ] Try to include the `mkcert` binary in the package, so that it can be used without installing it on the system. (check `node-pre-gyp`)\n- [ ] Make it a class, so we offer more ways to retrieve the cert\n- [ ] Add a check to see if `mkcert` is installed and if not, install it\n- [ ] Make sure that `mkcert` was initialized: `mkcert -install`\n- [ ] Add a check to see if the certificate is already created and ask the user if they want to overwrite it\n- [ ] Add more options for customizations (e.g. hosts, expiration time etc.)\n- [ ] Add a way to revoke the certificate\n- [ ] Add a way to check if the certificate is valid\n- [ ] Allow creating multiple certificates\n- [ ] Add tests\n- [ ] Add CI/CD\n- [ ] Add ESLint and Prettier\n- [ ] Add sync method\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamote%2Fcert127","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamote%2Fcert127","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamote%2Fcert127/lists"}