{"id":26719816,"url":"https://github.com/bromaniac/ssl-exporter","last_synced_at":"2026-04-28T12:06:24.929Z","repository":{"id":162108069,"uuid":"447331634","full_name":"bromaniac/ssl-exporter","owner":"bromaniac","description":"Checks SSL certificate expiration and exports as Prometheus metric.","archived":false,"fork":false,"pushed_at":"2025-03-12T07:43:43.000Z","size":74,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-11T04:35:55.542Z","etag":null,"topics":["certificate","container","kubernetes","monitoring","openshift","prometheus","prometheus-exporter","rust","ssl","tls"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bromaniac.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-01-12T18:40:14.000Z","updated_at":"2025-03-12T07:43:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"ecd2e6bc-e647-45dd-85d2-4c4195040e4e","html_url":"https://github.com/bromaniac/ssl-exporter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bromaniac/ssl-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bromaniac%2Fssl-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bromaniac%2Fssl-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bromaniac%2Fssl-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bromaniac%2Fssl-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bromaniac","download_url":"https://codeload.github.com/bromaniac/ssl-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bromaniac%2Fssl-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["certificate","container","kubernetes","monitoring","openshift","prometheus","prometheus-exporter","rust","ssl","tls"],"created_at":"2025-03-27T18:29:26.836Z","updated_at":"2026-04-28T12:06:24.923Z","avatar_url":"https://github.com/bromaniac.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"As of version 1.3.7 the [cert-util-operator](https://github.com/redhat-cop/cert-utils-operator) supports alerting on expiring certs stored as secrets in the cluster so you should probably use that instead. It can also populate Routes with certs stored in secrets.\n\n# ssl-expiration\n\nChecks SSL certificate expiration, exports as Prometheus metric and alerts when expiry is near. (I wrote this for Openshift but it should work in vanilla Kubernetes. I haven't tested it.)\n\n## Deploy in Openshift\nReview ocp-deploy.yaml and then deploy in Openshift\n```bash\noc apply -f ocp-deploy.yaml\n```\n\n## Run container locally\n```bash\ndocker pull alpha60/ssl-exporter:latest\ndocker run --rm -e SSL_EXPIRATION_DOMAIN=github.com -p 80:8080 ssl-exporter\n```\n\nIn another terminal\n```bash\ncurl localhost/metrics\n```\n\n## Run binary locally\n```bash\nSSL_EXPIRATION_DOMAIN=github.com cargo r\n```\n\nIn another terminal\n```bash\ncurl localhost:8080/metrics\n```\n\n## Build container image\n```bash\ncargo b --release\nBUILD_KIT=1 docker build -t ssl-exporter .\n```\n## Multiple domains\nJust add them as a comma separated list like this: SSL_EXPIRATION_DOMAIN=github.com,microsoft.com,google.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbromaniac%2Fssl-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbromaniac%2Fssl-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbromaniac%2Fssl-exporter/lists"}