{"id":20882718,"url":"https://github.com/ochko/go-tls-check","last_synced_at":"2026-04-19T21:36:22.994Z","repository":{"id":57567805,"uuid":"341526029","full_name":"ochko/go-tls-check","owner":"ochko","description":"Utility for SSL/TLS certificate validation","archived":false,"fork":false,"pushed_at":"2022-01-07T05:43:01.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T10:28:38.578Z","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/ochko.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}},"created_at":"2021-02-23T11:05:13.000Z","updated_at":"2022-01-07T05:42:39.000Z","dependencies_parsed_at":"2022-08-28T07:40:40.074Z","dependency_job_id":null,"html_url":"https://github.com/ochko/go-tls-check","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ochko%2Fgo-tls-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ochko%2Fgo-tls-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ochko%2Fgo-tls-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ochko%2Fgo-tls-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ochko","download_url":"https://codeload.github.com/ochko/go-tls-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243260467,"owners_count":20262692,"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-18T07:33:10.349Z","updated_at":"2025-12-26T21:49:04.031Z","avatar_url":"https://github.com/ochko.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### SSL/TLS certificate validator\n\n#### Use binary\n```sh\ngo install github.com/ochko/go-tls-check/cmd/tls-check\n\ntls-check example.com\ntls-check -w 24h -t 5s example.com\n```\n\nExit code is `0` when validation was successful, `1` if there is any issue.\nIt also prints some information in json format, so that you can collect expiration days of your deployed certificates:\n```json\n{\n  \"status\": \"ok\",\n  \"host\": \"example.com\",\n  \"expiration\": \"32h1m52s\",\n}\n```\nWhen there is an issue:\n```json\n{\n  \"status\": \"ng\",\n  \"host\":\"unknown.com\",\n  \"expiration\":\"0s\",\n  \"msg\":\"dial tcp 23.253.58.227:443: i/o timeout\"\n}\n```\n\n#### Options\n```\ntls-cert-check [options] hostname1 hostname2 ...\n  options:\n  -t string\n    \tConnection timeout. (default \"10s\")\n  -w string\n    \tAllowd time before certificate expiration. (default \"72h\")\n```\n\n### Importing the package\n\n```golang\nimport \"github.com/ochko/go-tls-check/validator\"\n\n...\n\nexpiration, err := validator.Check(\"example.com\", time.Hour*24, time.Second*3)\n\n...\n\n```\n\n### Using the docker image\n\n```sh\ndocker build . -t tls-check\ndocker run tls-check example.com\n```\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fochko%2Fgo-tls-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fochko%2Fgo-tls-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fochko%2Fgo-tls-check/lists"}