{"id":37106063,"url":"https://github.com/kenmoini/lego-bridge","last_synced_at":"2026-01-14T12:46:58.938Z","repository":{"id":220461848,"uuid":"751699267","full_name":"kenmoini/lego-bridge","owner":"kenmoini","description":"HTTP service written in golang to make ACME requests easy","archived":false,"fork":false,"pushed_at":"2024-06-17T15:53:53.000Z","size":43,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T01:58:41.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/kenmoini.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":"2024-02-02T06:06:48.000Z","updated_at":"2024-02-02T06:11:45.000Z","dependencies_parsed_at":"2024-03-07T20:32:04.811Z","dependency_job_id":"e0f7155d-e83f-4c68-859c-d63ca0b0689b","html_url":"https://github.com/kenmoini/lego-bridge","commit_stats":null,"previous_names":["kenmoini/lego-bridge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kenmoini/lego-bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmoini%2Flego-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmoini%2Flego-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmoini%2Flego-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmoini%2Flego-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenmoini","download_url":"https://codeload.github.com/kenmoini/lego-bridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmoini%2Flego-bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-14T12:46:58.449Z","updated_at":"2026-01-14T12:46:58.925Z","avatar_url":"https://github.com/kenmoini.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lego Bridge\n\nThis is a microservice to bridge between ACME requests to Step CA and PowerDNS.\n\n## Usage\n\n### Required Input\n\n- `PDNS_API_URL`\n- `PDNS_API_KEY`\n- `ACME_SERVER_URL`\n- `EMAIL_ADDRESS`\n\n### Optional Input\n\n- `DNS_SERVERS` - A list of DNS servers to query for a response, separated by a semi-colon.  Also set `DNS_SERVER_ONE` and `DNS_SERVER_TWO`\n\n```bash\n# With Podman\npodman run --rm -d --name lego-bridge \\\n -p 8080:8080 \\\n -e PDNS_API_URL=\"http://pdns-api.example.com:8081\" \\\n -e PDNS_API_KEY=\"somekeyhere\" \\\n -e ACME_SERVER_URL=\"https://step-ca.example.com/acme/acme/directory\" \\\n -e EMAIL_ADDRESS=\"you@example.com\" \\\n -e DNS_SERVERS=\"192.168.42.9,192.168.42.10\" \\\n -e DNS_SERVER_ONE=\"192.168.42.9\" \\\n -e DNS_SERVER_TWO=\"192.168.42.10\" \\\n quay.io/kenmoini/lego-bridge:latest\n\n# On Kubernetes - Secret edits needed\nkubectl apply -k deployment/\n```\n\nNow you should be able to make a cURL to the service:\n\n```\nexport SERVER_ENDPOINT=\"http://lego-bridge.apps.k8s.kemo.labs\"\n\n./request-cert.sh \"test.example.com\"\n./request-cert.sh \"test.example.com;other-test.example.com\"\n\n# Or pipe things into Bash\ncurl -sSL https://raw.githubusercontent.com/kenmoini/lego-bridge/main/request-cert.sh | SERVER_ENDPOINT=\"http://lego-bridge.apps.k8s.kemo.labs\" bash -s -- \"testing.example.com;test2.example.com\"\n```\n\nWhich will save the certificate to `./$FIRST_DOMAIN.crt.pem` and the key to `./$FIRST_DOMAIN.key.pem`\n\n## Setup for Crontab\n\n```bash\ndnf install -y jq curl wget\n\ncd /opt\n\nwget https://raw.githubusercontent.com/kenmoini/lego-bridge/main/cron-wrapper.sh -O cockpit-ssl.sh\n\nchmod a+x cockpit-ssl.sh\n\ncrontab -e\n\n# 0 0 3 * * /opt/cockpit-ssl.sh \"host.example.com\"\n```\n\nDefaults are set to work for Cockpit","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenmoini%2Flego-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenmoini%2Flego-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenmoini%2Flego-bridge/lists"}