{"id":16883345,"url":"https://github.com/hardillb/web-ca","last_synced_at":"2025-03-22T07:32:33.070Z","repository":{"id":42241739,"uuid":"239620842","full_name":"hardillb/web-ca","owner":"hardillb","description":"Very simple web frontend for openssl to create new certificates and sign them with supplied certs","archived":false,"fork":false,"pushed_at":"2024-09-18T09:46:14.000Z","size":156,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-13T16:11:32.929Z","etag":null,"topics":["certificate-authority"],"latest_commit_sha":null,"homepage":null,"language":"EJS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hardillb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["hardillb"]}},"created_at":"2020-02-10T21:50:47.000Z","updated_at":"2024-09-18T09:45:42.000Z","dependencies_parsed_at":"2024-05-02T01:51:10.193Z","dependency_job_id":"efccbb7a-31b8-4ce5-92e9-f52fbd282952","html_url":"https://github.com/hardillb/web-ca","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/hardillb%2Fweb-ca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fweb-ca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fweb-ca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fweb-ca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardillb","download_url":"https://codeload.github.com/hardillb/web-ca/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221824926,"owners_count":16886889,"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":["certificate-authority"],"created_at":"2024-10-13T16:11:20.350Z","updated_at":"2024-10-28T12:18:12.103Z","avatar_url":"https://github.com/hardillb.png","language":"EJS","funding_links":["https://github.com/sponsors/hardillb"],"categories":[],"sub_categories":[],"readme":"# Personal Web Certificate Authority\n\nThis is a small web front end for creating certifacates signed by a supplied CA cert and key.\n\nIt was written to run on a Raspberry Pi Zero running as a USB Ethernet gadget to provide a \n\"secure\" offline CA. Details can be found [here](https://www.hardill.me.uk/wordpress/2020/02/10/a-personal-offline-certificate-authority/)\n\n## Configure\n\nYou can configure the service by editing the `options.js` file\n\n```\nmodule.exports = {\n\tcaPath: \"./ca\".\n\tcaCertPath: \"./ca/ca.crt\",\n\tcaKeyPath: \"./ca/ca.key\",\n\tlife: 365,\n\tport: 80\n}\n```\n\nYou can set the path to the CA's cert and key, set the default certificate life in days and \nthe port the service will listen on.\n\n## Setup\n\nTo allow running as a normal user and still binding to port 80 run the following.\n\n```\nsudo setcap CAP_NET_BIND_SERVICE=+eip `which node`\n```\n\nBe aware this will allow ANY nodejs app to bind to system ports.\n\nIf you need to create a new CA cert then you can edit the `createCA.js` file to set the DN information for the CA\nand then run:\n\n```\nnpm createCA -p \u003cprivate key password for CA\u003e\n```\n\n## Running\n\n```\nnpm start\n```\n\n\n### Usage\n\nJust point your browser at the correct host/port and then pick from either a host or personal\ncertificate. Fill in the required fields including the passphrase for the CA key and a \npasssphase for the output P12 file.\n\n## TODO\n\n- build OpenVPN client config files\n- ~~Add a LOT of error handling~~\n- ~~Allow the uploading of an old cert (to extract the Subject info) to create new~~ (not possible as needs priv key)\n- ~~Add more constraints to cert types~~\n- ~~Add support to update CA serial/csr data~~","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2Fweb-ca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardillb%2Fweb-ca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2Fweb-ca/lists"}