{"id":23547356,"url":"https://github.com/bixal/acai","last_synced_at":"2025-08-18T12:24:47.077Z","repository":{"id":115872324,"uuid":"536293701","full_name":"Bixal/acai","owner":"Bixal","description":"This program installs LetsEncrypt SSL certificates into Acquia environments.","archived":false,"fork":false,"pushed_at":"2025-07-21T04:02:59.000Z","size":27,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":8,"default_branch":"1.x","last_synced_at":"2025-07-21T06:12:27.321Z","etag":null,"topics":["debian-package","letsencrypt"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bixal.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,"zenodo":null}},"created_at":"2022-09-13T20:13:10.000Z","updated_at":"2025-07-21T04:03:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"750178b4-f8a2-4d96-a57d-509bfcd64b42","html_url":"https://github.com/Bixal/acai","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Bixal/acai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bixal%2Facai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bixal%2Facai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bixal%2Facai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bixal%2Facai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bixal","download_url":"https://codeload.github.com/Bixal/acai/tar.gz/refs/heads/1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bixal%2Facai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270991906,"owners_count":24681294,"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-08-18T02:00:08.743Z","response_time":89,"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":["debian-package","letsencrypt"],"created_at":"2024-12-26T09:15:24.021Z","updated_at":"2025-08-18T12:24:47.061Z","avatar_url":"https://github.com/Bixal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ACAI - Acquia Cert Automatic Installer\n\nThis program installs LetsEncrypt SSL certificates into Acquia environments.\n\n\n## Requirements\n\nThis program requires Python 3.x and the [Python Acquia Cloud API v2](https://github.com/pmatias/python-acquia-cloud-2) library with the [SSL management patch](https://github.com/pmatias/python-acquia-cloud-2/pull/33) applied.\n\n## Configuration\nThe program looks in `/etc/acai.conf` and `~/.acai.conf` for environment definitions.  The config files are in INI format.  Each environment is its own section in the config file, and the `DEFAULT` section provides global values that can be overridden in a section.\n\nExample:\n\n```ini\n[DEFAULT]\nacquia_environment=prod\napi_key=a26a25ad-69fb-4348-a7ac-bdd0a60849af\napi_secret=TW9zdCBzZWN1cmUgcGFzc3dvcmQgaXMgPGVudGVyPi4=\napplication=7eff4747-4733-4070-9002-353c1dcdd090\n\n[my-app.dev]\ncert_name=myapp.bxdev.net\nacquia_environment=dev\n\n[my-app.stage]\ncert_name=myapp.bxstage.net\nacquia_environment=test\n\n[another-app.prod]\napplication=7eff4747-4733-4070-9002-353c1dcdd090\napi_key=070bdfe5-d106-40b0-a110-4882d8929669\napi_secret=VmFjaGVzIGJsZXVlcyBsZSBtYXRpbiwgY2jDqXJpZS4=\ncert_name=stage.another-app.com\nacquia_environment=prod\n```\n\n* The INI section name (e.g., my-app.dev) is only used by the acai.py app, and does not need to map to anything at Acquia or the site's hostname.\n\n* The `api_key` and `api_secret` are generated in your Acquia account.  See the [Acquia documentation](https://docs.acquia.com/cloud-platform/develop/api/auth/) for details.\n\n* The `cert_name` is the directory `/etc/letsencrypt/live/[cert_name]` that contains the cert, key, and chain.\n\n* The `application` is the Application UUID.  You can find this by logging into Acquia Cloud and clicking \"Product Keys\" on the left.  It is also in the URL for your dashboard: `https://cloud.acquia.com/a/applications/[application-uuid]/`.\n\n* The `acquia_environment` is the name of the environment at Acquia, typically one of `dev`, `test`, `prod` or `ra`.\n\n* The `/etc/acai.conf` and `~/.acai.conf` files should have restrictive permissions.\n\n## Usage\n\nWith the environments defined, the certs can be installed by running `acai.py` with the name of the environment's ini section to update.  For example, to update the `dev` environment in the `my-app` application, use:\n\n```\n# acai.py my-app.dev\n```\n\nThe program doesn't have to run as root.  It only needs to be able to read the letsencrypt certs (typically owned by root) and the `/etc/acai.conf` file to fetch the Acquia API creds.\n\nThis can be set up as a renewal hook triggered by certbot by editing the `/etc/letsencrypt/renew/[cert_name].conf` and adding a `renew_hook` to the `[renewalparams]` section.\n\n```\n[renewalparams]\nrenew_hook = /usr/bin/acai.py my-app.dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbixal%2Facai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbixal%2Facai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbixal%2Facai/lists"}