{"id":18551886,"url":"https://github.com/linsomniac/legocron","last_synced_at":"2025-06-16T14:02:44.069Z","repository":{"id":220442928,"uuid":"751652040","full_name":"linsomniac/legocron","owner":"linsomniac","description":"Automation wrapper for LetsEncrypt certs via LeGo","archived":false,"fork":false,"pushed_at":"2024-02-02T03:12:54.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-08T02:51:36.185Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linsomniac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-02-02T03:03:28.000Z","updated_at":"2024-02-02T03:03:42.000Z","dependencies_parsed_at":"2024-02-02T04:26:15.445Z","dependency_job_id":"10c56406-7a75-42c3-b90d-560556085bc5","html_url":"https://github.com/linsomniac/legocron","commit_stats":null,"previous_names":["linsomniac/legocron"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsomniac%2Flegocron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsomniac%2Flegocron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsomniac%2Flegocron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsomniac%2Flegocron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linsomniac","download_url":"https://codeload.github.com/linsomniac/legocron/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328389,"owners_count":22052633,"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-06T21:10:59.194Z","updated_at":"2025-05-15T11:10:37.228Z","avatar_url":"https://github.com/linsomniac.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"LetsEncrypt automation wrapper for LeGo\n\n# Overview\n\nThis script automates the request and renew of LetsEncrypt certs using\n[LeGo](https://github.com/go-acme/lego).  It makes it as easy as to\ncreate a cron job that runs: \n\n    legocron www.example.com altname.example.com foo.example.com\n\nto request and refresh the certs.  If you add or remove names, legocron\nwill detect it and issue a new cert with those names.\n\n# Getting Started\n\n- Install lego.  That may be via your system package manager (\"apt install lego\")\nor by downloading a binary from [the lego Releases page](https://github.com/go-acme/lego/releases).\n\n- Download legocron:\n\n```shell\nwget https://raw.githubusercontent.com/linsomniac/legocron/main/legocron\nchmod 755 legocron\nmv legocron /usr/local/sbin\n```\n\n- Edit \"legocron\" and set \"EMAIL_ADDR\" and select a \"LEGO_ARGS\" provider option.\n\n- Run \"legocron\" with any certificate names you want to request (use staging for testing):\n\n```shell\nlegocron --staging www.example.com\n# or:\nlegocron --staging www.example.com altname.example.com foo.example.com\n```\n\n- Check the certs in \"/usr/local/lib/legocron/certificates\"\n\n- Remove the \"--staging\" when you are done testing and want a real cert.\n\n- Set up legocron in cron:\n\n    0 0 * * * root /usr/local/sbin/legocron www.example.com\n\n- Optionally: Write a post-cert script in \"/usr/local/lib/legocron/post_cert_hook\" and\n  make it executable, with any steps to take after a certificate has been issued/renewed.\n  For exmaple, you may want to \"systemctl restart apache2\" in there.\n\n## License\n\nCreative Commons Zero v1.0 Universal\n\n[//]: # ( vim: set tw=90 ts=4 sw=4 ai: )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinsomniac%2Flegocron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinsomniac%2Flegocron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinsomniac%2Flegocron/lists"}