{"id":22316673,"url":"https://github.com/developerstoolbox/ssl-expiry-gem","last_synced_at":"2025-07-29T12:30:32.971Z","repository":{"id":242576039,"uuid":"621744101","full_name":"DevelopersToolbox/ssl-expiry-gem","owner":"DevelopersToolbox","description":"A simple ruby gem for checking when ssl certificates expire","archived":false,"fork":false,"pushed_at":"2025-07-28T05:45:32.000Z","size":208,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-28T07:26:32.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevelopersToolbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["WolfSoftware","TGWolf"]}},"created_at":"2023-03-31T09:41:32.000Z","updated_at":"2025-07-28T05:34:11.000Z","dependencies_parsed_at":"2024-06-10T05:29:18.429Z","dependency_job_id":"485b1cdb-2655-4c1c-8381-3eeb95178d84","html_url":"https://github.com/DevelopersToolbox/ssl-expiry-gem","commit_stats":null,"previous_names":["developerstoolbox/ssl-expiry-gem"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/DevelopersToolbox/ssl-expiry-gem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevelopersToolbox%2Fssl-expiry-gem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevelopersToolbox%2Fssl-expiry-gem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevelopersToolbox%2Fssl-expiry-gem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevelopersToolbox%2Fssl-expiry-gem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevelopersToolbox","download_url":"https://codeload.github.com/DevelopersToolbox/ssl-expiry-gem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevelopersToolbox%2Fssl-expiry-gem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267552076,"owners_count":24105995,"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-07-28T02:00:09.689Z","response_time":68,"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":[],"created_at":"2024-12-03T23:07:25.753Z","updated_at":"2025-07-29T12:30:32.518Z","avatar_url":"https://github.com/DevelopersToolbox.png","language":"Ruby","funding_links":["https://github.com/sponsors/WolfSoftware","https://github.com/sponsors/TGWolf"],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable --\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/DevelopersToolbox/\"\u003e\n        \u003cimg src=\"https://cdn.wolfsoftware.com/assets/images/github/organisations/developerstoolbox/black-and-white-circle-256.png\" alt=\"DevelopersToolbox logo\" /\u003e\n    \u003c/a\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/DevelopersToolbox/ssl-expiry-gem/actions/workflows/cicd.yml\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/DevelopersToolbox/ssl-expiry-gem/cicd.yml?branch=master\u0026label=build%20status\u0026style=for-the-badge\" alt=\"Github Build Status\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/DevelopersToolbox/ssl-expiry-gem/blob/master/LICENSE.md\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/DevelopersToolbox/ssl-expiry-gem?color=blue\u0026label=License\u0026style=for-the-badge\" alt=\"License\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/DevelopersToolbox/ssl-expiry-gem\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/created-at/DevelopersToolbox/ssl-expiry-gem?color=blue\u0026label=Created\u0026style=for-the-badge\" alt=\"Created\"\u003e\n    \u003c/a\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/DevelopersToolbox/ssl-expiry-gem/releases/latest\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/v/release/DevelopersToolbox/ssl-expiry-gem?color=blue\u0026label=Latest%20Release\u0026style=for-the-badge\" alt=\"Release\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/DevelopersToolbox/ssl-expiry-gem/releases/latest\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/release-date/DevelopersToolbox/ssl-expiry-gem?color=blue\u0026label=Released\u0026style=for-the-badge\" alt=\"Released\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/DevelopersToolbox/ssl-expiry-gem/releases/latest\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/commits-since/DevelopersToolbox/ssl-expiry-gem/latest.svg?color=blue\u0026style=for-the-badge\" alt=\"Commits since release\"\u003e\n    \u003c/a\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/DevelopersToolbox/ssl-expiry-gem/blob/master/.github/CODE_OF_CONDUCT.md\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Code%20of%20Conduct-blue?style=for-the-badge\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/DevelopersToolbox/ssl-expiry-gem/blob/master/.github/CONTRIBUTING.md\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Contributing-blue?style=for-the-badge\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/DevelopersToolbox/ssl-expiry-gem/blob/master/.github/SECURITY.md\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Report%20Security%20Concern-blue?style=for-the-badge\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/DevelopersToolbox/ssl-expiry-gem/issues\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Get%20Support-blue?style=for-the-badge\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## Overview\n\nThis is a simple little gem for checking when an SSL will expire.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ssl_expiry'\n```\n\nAnd then execute:\n\n```\n$ bundle\n```\n\nOr install it yourself as:\n\n```\n$ gem install ssl_expiry\n```\n\n## Usage\n\n### Simple Usage\n```ruby\nrequire 'ssl_expiry'\n\nSSLExpiry::SSLExpiry.check_certificates('wolfsoftware.com')\n\nResults:\n{\"wolfsoftware.com\"=\u003e{\"status\"=\u003e200, \"expires_on\"=\u003e\"02 Aug 2024\", \"expires_in\"=\u003e57, \"common_name\"=\u003e\"wolfsoftware.com\", \"issuer\"=\u003e\"Let's Encrypt\"}}\n```\n\n#### Multiple Domains\n\nIt is possible to check a list of domains rather than just single domains, this is done by passing a list[] to SSLExpiry::SSLExpiry.check_certificates.\n\n```ruby\nrequire 'ssl_expiry'\n\nSSLExpiry::SSLExpiry.check_certificates(['wolfsoftware.com', 'wolfsoftware.net'])\n```\n\n### Displaying the output\n\n```ruby\nrequire 'ssl_expiry'\n\nresults = SSLExpiry::SSLExpiry.check_certificates('wolfsoftware.com')\nSSLExpiry::SSLExpiry.display_results(results)\n```\n\nThis would give the following output\n\n```shell\n----------------------------------------------------------------------------------------------------\n Domain                         | Status\n----------------------------------------------------------------------------------------------------\n wolfsoftware.com               | expires on 02 Aug 2024 (in 57 days) [CN=wolfsoftware.com]\n----------------------------------------------------------------------------------------------------\n```\n\n## Command Line Tools\n\nThere is a command line tool included with this gem.\n\n```shell\ncheck-ssl -d wolfsoftware.com\n\n----------------------------------------------------------------------------------------------------\n Domain                         | Status\n----------------------------------------------------------------------------------------------------\n wolfsoftware.com               | expires on 02 Aug 2024 (in 57 days) [CN=wolfsoftware.com]\n----------------------------------------------------------------------------------------------------\n```\n\n### Multiple Domains\n\nTo check multiple domains at the same time, simply supply a comma separated list.\n\n```shell\ncheck-ssl -d wolfsoftware.com,wolfsoftware.net\n\n------------------------------------------------------------------------------------------------------------------------\n Domain                         | Status\n------------------------------------------------------------------------------------------------------------------------\n wolfsoftware.com               | expires on 02 Aug 2024 (in 57 days) [CN=wolfsoftware.com]\n wolfsoftware.net               | expires on 02 Aug 2024 (in 57 days) [CN=wolfsoftware.net]\n------------------------------------------------------------------------------------------------------------------------\n```\n\n### Custom port\n\nIf you want to check an SSL expiry on a custom port you can do this by adding the port to the end of the domain.\n\n```\n  check-ssl -d wolfsoftware.com:8080\n```\n\n\u003cbr /\u003e\n\u003cp align=\"right\"\u003e\u003ca href=\"https://wolfsoftware.com/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Created%20by%20Wolf%20on%20behalf%20of%20Wolf%20Software-blue?style=for-the-badge\" /\u003e\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperstoolbox%2Fssl-expiry-gem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperstoolbox%2Fssl-expiry-gem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperstoolbox%2Fssl-expiry-gem/lists"}