{"id":16654642,"url":"https://github.com/heman/ipa-dns-hook","last_synced_at":"2025-04-09T18:12:06.446Z","repository":{"id":46301301,"uuid":"109734712","full_name":"HeMan/ipa-dns-hook","owner":"HeMan","description":"Hook for Dehydrated to use FreeIPA for dns-01","archived":false,"fork":false,"pushed_at":"2025-03-28T09:46:51.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T18:12:01.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/HeMan.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,"publiccode":null,"codemeta":null}},"created_at":"2017-11-06T18:39:55.000Z","updated_at":"2024-06-19T06:58:13.000Z","dependencies_parsed_at":"2024-06-19T08:41:43.074Z","dependency_job_id":null,"html_url":"https://github.com/HeMan/ipa-dns-hook","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/HeMan%2Fipa-dns-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeMan%2Fipa-dns-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeMan%2Fipa-dns-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeMan%2Fipa-dns-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HeMan","download_url":"https://codeload.github.com/HeMan/ipa-dns-hook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085326,"owners_count":21045139,"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-12T09:50:32.957Z","updated_at":"2025-04-09T18:12:06.427Z","avatar_url":"https://github.com/HeMan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FreeIPA hook for `dehydrated`\n\nThis is a hook for the [Let's Encrypt](https://letsencrypt.org/) ACME client [dehydrated](https://github.com/lukas2511/dehydrated) (previously known as `letsencrypt.sh`) that allows you to use DNS records in a FreeIPA to respond to `dns-01` challenges. Requires Python, requests and requests-kerberos.\n\n## Installation\n\n```\n$ git clone https://github.com/lukas2511/dehydrated\n$ cd dehydrated\n$ mkdir hooks\n$ git clone https://github.com/HeMan/ipa-dns-hook.git hooks/ipa-dns\n$ pip install -r hooks/ipa-dns/requirements.txt\n```\n\n## Configuration\nYour IPA-server and domain is expected to be in the environment.\n\n```\nexport IPA_SERVER=myipa.example.com\nexport IPA_DOMAIN=example.com\n```\n\nIt uses Kerberos authentication by default. To use username and password you need to set environment variables IPA_USER and IPA_PASSWORD.\n```\nexport IPA_USER=admin\nexport IPA_PASSWORD=s3cretp4ssword\n```\n\nThese could also be placed in `dehydrated/config`, which is read by dehydrated.\n\n\n```\necho \"export IPA_SERVER=myipa.example.com\" \u003e\u003e dehydrated/config\necho \"export IPA_DOMAIN=example.com\" \u003e\u003e dehydrated/config\necho \"export IPA_USER=admin\" \u003e\u003e dehydrated/config\necho \"export IPA_PASSWORD=s3cretp4ssword\" \u003e\u003e dehydrated/config\n```\n\n\n## Usage\n```\n$ ./dehydrated -k hooks/ipa-dns/ipa-dns-hook.py -t dns-01 -c --accept-terms -d myhost.example.com\n\n# !! WARNING !! No main config file found, using default config!\n#\nProcessing myhost.example.com\n + Signing domains...\n + Creating new directory /home/user/dehydrated/certs/myhost.example.com ...\n + Generating private key...\n + Generating signing request...\n + Requesting challenge for myhost.example.com...\n + freeipa hook executing: deploy_challenge\n + Responding to challenge for myhost.example.com...\n + freeipa hook executing: clean_challenge\n + Challenge is valid!\n + Requesting certificate...\n + Checking certificate...\n + Done!\n + Creating fullchain.pem...\n + Using cached chain!\n + freeipa hook executing: deploy_cert\n + Done!\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheman%2Fipa-dns-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheman%2Fipa-dns-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheman%2Fipa-dns-hook/lists"}