{"id":17105081,"url":"https://github.com/gilbitron/local-ca","last_synced_at":"2025-09-22T17:50:07.938Z","repository":{"id":62510742,"uuid":"277782196","full_name":"gilbitron/local-ca","owner":"gilbitron","description":"A simple tool to create locally trusted development certificates","archived":false,"fork":false,"pushed_at":"2020-07-20T20:12:34.000Z","size":288,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T03:52:40.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/gilbitron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["gilbitron"]}},"created_at":"2020-07-07T10:06:37.000Z","updated_at":"2020-07-20T20:12:37.000Z","dependencies_parsed_at":"2022-11-02T10:17:05.171Z","dependency_job_id":null,"html_url":"https://github.com/gilbitron/local-ca","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbitron%2Flocal-ca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbitron%2Flocal-ca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbitron%2Flocal-ca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbitron%2Flocal-ca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilbitron","download_url":"https://codeload.github.com/gilbitron/local-ca/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245162190,"owners_count":20570692,"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-10-14T15:40:58.147Z","updated_at":"2025-09-22T17:50:07.816Z","avatar_url":"https://github.com/gilbitron.png","language":"PHP","funding_links":["https://github.com/sponsors/gilbitron"],"categories":[],"sub_categories":[],"readme":"# Local CA\r\n\r\nLocal CA is a simple command line tool to create locally trusted certificates for your development websites. Written in PHP.\r\n\r\n## Requirements\r\n\r\n* macOS\r\n* PHP 7.2.5\r\n* [OpenSSL extension](https://www.php.net/manual/en/book.openssl.php)\r\n\r\n## Installation\r\n\r\n### Download PHAR Binary\r\n\r\nDownload the latest PHAR file from the [releases page](https://github.com/gilbitron/local-ca/releases):\r\n\r\n```\r\nwget -q https://github.com/gilbitron/local-ca/releases/download/0.2.0/local-ca.phar\r\n```\r\n\r\nThen, make the PHAR file executable:\r\n\r\n```\r\nchmod +x local-ca.phar\r\n```\r\n\r\nYou can now either use the PHAR by running `local-ca.phar`, or you can install it globally:\r\n\r\n```\r\nmv local-ca.phar /usr/local/bin/local-ca\r\n```\r\n\r\n### Composer Global Install\r\n\r\nInstall Local CA globally using composer:\r\n\r\n```\r\ncomposer global require gilbitron/local-ca\r\n```\r\n\r\nMake sure to place Composer's system-wide vendor bin directory in your `$PATH` so the local-ca executable can be located by your system. In macOS this is `$HOME/.composer/vendor/bin`.\r\n\r\n## Usage\r\n\r\nFirst, you need to install Local CA as a locally trusted certificate authority:\r\n\r\n```\r\nlocal-ca install\r\n```\r\n\r\nThis will generate a root primary key and certificate that will be used to sign the development certificates. All keys are generated using 2048 bit RSA encryption.\r\n\r\nNext, generate a development certificate by using the `new` command and passing a domain:\r\n\r\n```\r\nlocal-ca new example.test\r\n```\r\n\r\nThis will generate a development primary key and certificate, signed and trusted by the root, that you can use in your development sites. Certificates are valid for 365 days.\r\n\r\n* [Instructions on setting up HTTPS in Nginx](http://nginx.org/en/docs/http/configuring_https_servers.html)\r\n* [Instructions on setting up HTTPS in Apache](https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html)\r\n\r\n## Credits\r\n\r\nLocal CA was created by [Gilbert Pellegrom](https://gilbitron.me) from [Dev7studios](https://dev7studios.co). Released under the MIT license.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilbitron%2Flocal-ca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilbitron%2Flocal-ca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilbitron%2Flocal-ca/lists"}