{"id":21575539,"url":"https://github.com/rangle/mobius","last_synced_at":"2025-03-18T06:45:40.676Z","repository":{"id":146999586,"uuid":"338359892","full_name":"rangle/mobius","owner":"rangle","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-12T18:20:07.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-24T13:32:09.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/rangle.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":"2021-02-12T15:40:40.000Z","updated_at":"2021-02-12T18:20:09.000Z","dependencies_parsed_at":"2023-04-04T20:03:55.558Z","dependency_job_id":null,"html_url":"https://github.com/rangle/mobius","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/rangle%2Fmobius","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Fmobius/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Fmobius/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Fmobius/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rangle","download_url":"https://codeload.github.com/rangle/mobius/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173506,"owners_count":20410295,"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-11-24T12:13:32.741Z","updated_at":"2025-03-18T06:45:40.657Z","avatar_url":"https://github.com/rangle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"150\" src=\"./mobius.png\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eMobius Cert\u003c/h1\u003e\n\nA util to create Root-CA and Server certificates for use with `localhost` served projects.\n\n\u003chr/\u003e\n\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://rangle.io)\n[![docker](https://img.shields.io/badge/Docker-required-orange?style=flat\u0026logo=docker)](https://www.docker.com/)\n[![openssl](https://img.shields.io/badge/OpenSSL-v1.1.1-blue)](https://www.openssl.org/)\n\n## Install\n\n```\nyarn add -D @rangleio/mobius\n```\n\n## Usage\n\nCurrently you will have to add the Root CA Cert to the system root-store and to browser-specific stores. Follow the steps below to configure.\n\n1. Run the script to invoke docker and create the certificates\n\n   ```\n   mobius\n   ```\n\n2. Add thee `ca.crt ` to your root-store\n\n- **Platform**\n  1. **OSX** - Drag the `ca.crt` file to your keychain, double-click the cert and apply `always trust`.\n  2. **Win** - coming soon\n  3. **Linux** - coming soon\n- **Browser**\n  1. **Firefox** - Manually import to FF Store\n\n### Configuration\n\nConfiguration can be in one of the following files:\n\n- `.mobiusrc` (JSON or YML)\n- `mobius.js`\n- `mobius.json`\n- `mobius.yml` or `mobius.yaml`\n- `package.json` under `\"mobius\"`\n\nEverything is optional in the config. Only values added will be overridden from the default (below)\n\n#### Default Config\n\n```js\n{\n  // output for all certificates\n  out: \".\",\n  // for tracking the certs created by OpenSSL\n  databaseFile: \"cert-db.txt\",\n  serialFile: \"cert-serial.txt\",\n  // Common Distinguished Names\n  dn: {\n    country: \"CA\",\n    state: \"Test State\",\n    city: \"Test City\",\n    org: \"Test Org\",\n    orgUnit: \"IT\",\n    email: \"hello@example.com\"\n  },\n  // Root CA Cert\n  ca: {\n    // key file name\n    keyFile: \"ca.key\",\n    // certificate file name\n    certFile: \"ca.crt\",\n    // merges with Common DN above\n    dn: {\n      // Required\n      commonName: \"Mobius Localhost CA\"\n    }\n  },\n  server: {\n    // key file name\n    keyFile: \"server.key\",\n    // certificate file name\n    certFile: \"server.crt\",\n    // certificate signing request name\n    csrFile: \"server.csr\",\n    // merges with Common DN above\n    dn: {\n      // Required\n      commonName: \"Mobius Localhost Server\"\n    },\n    // domains allowed for server\n    domains: [\"localhost\"],\n    // IP's allowed for server\n    ips: [\"127.0.0.1\", \"::1\"]\n  }\n}\n```\n\nIf using a .`js` file, you can optionally return a function that accepts the default configuration, and extend it.\n\n```js\nmodule.exports = (defaultConfig) =\u003e ({\n  ...defaultConfig,\n  out: \"./path/to/out\" // only override the out property\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Fmobius","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frangle%2Fmobius","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Fmobius/lists"}