{"id":15561058,"url":"https://github.com/thekuwayama/ocsprf","last_synced_at":"2026-03-02T17:04:51.096Z","repository":{"id":56886129,"uuid":"233874047","full_name":"thekuwayama/ocsprf","owner":"thekuwayama","description":"OCSP Response Fetch","archived":false,"fork":false,"pushed_at":"2022-02-06T13:41:47.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-04T14:20:57.541Z","etag":null,"topics":["cli","ocsp","ruby"],"latest_commit_sha":null,"homepage":"","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/thekuwayama.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-14T15:35:22.000Z","updated_at":"2022-04-21T14:50:00.000Z","dependencies_parsed_at":"2022-08-20T14:31:24.798Z","dependency_job_id":null,"html_url":"https://github.com/thekuwayama/ocsprf","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/thekuwayama/ocsprf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekuwayama%2Focsprf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekuwayama%2Focsprf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekuwayama%2Focsprf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekuwayama%2Focsprf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thekuwayama","download_url":"https://codeload.github.com/thekuwayama/ocsprf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekuwayama%2Focsprf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30011191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T17:00:27.440Z","status":"ssl_error","status_checked_at":"2026-03-02T17:00:03.402Z","response_time":60,"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":["cli","ocsp","ruby"],"created_at":"2024-10-02T16:05:07.053Z","updated_at":"2026-03-02T17:04:51.074Z","avatar_url":"https://github.com/thekuwayama.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ocsprf\n\n[![Gem Version](https://badge.fury.io/rb/ocsprf.svg)](https://badge.fury.io/rb/ocsprf)\n[![Actions Status](https://github.com/thekuwayama/ocsprf/workflows/CI/badge.svg)](https://github.com/thekuwayama/ocsprf/actions?workflow=CI)\n[![Maintainability](https://api.codeclimate.com/v1/badges/4d5bb71e2dca46f5a239/maintainability)](https://codeclimate.com/github/thekuwayama/ocsprf/maintainability)\n\n`ocsprf` is OCSP Response Fetch CLI.\n\n- https://datatracker.ietf.org/doc/html/rfc6960\n\n\n## Installation\n\nThe gem is available at [rubygems.org](https://rubygems.org/gems/ocsprf). You can install it the following.\n\n```bash\n$ gem install ocsprf\n```\n\n\n## Usage\n\n```bash\n$ ocsprf --help\nUsage: ocsprf [options] PATH\n    -i, --issuer PATH                issuer certificate path\n    -o, --output PATH                output file path\n    -s, --strict                     strict mode                   (default false)\n    -v, --verbose                    verbose mode                  (default false)\n```\n\nYou can run it the following and print the DER-encoded OCSP Response that fetched.\n\n```bash\n$ ocsprf /path/to/subject/certificate\n$DER_BINARY\n```\n\nIf you need to print OCSP Response text, you can run it the following.\n\n```bash\n$ ocsprf /path/to/subject/certificate --verbose \u003e /dev/null\nOCSP Response Data:\n    OCSP Response Status: (0x0)\n    Responses:\n    Certificate ID:\n      Hash Algorithm: sha1\n      Issuer Name Hash: 0123456789ABCDEF0123456789ABCDEF01234567\n      Issuer Key Hash: 0123456789ABCDEF0123456789ABCDEF01234567\n      Serial Number: 0123456789ABCDEF0123456789ABCDEF01234567\n    Cert Status: good\n    This Update: 2020-01-01 12:00:00 UTC\n    Next Update: 2020-01-08 12:00:00 UTC\n```\n\nIf you have the issuer certificate corresponding to the subject certificate, you can pass it using `--issuer` option.\nBy default, `ocsprf` tries to get the issuer certificate using AIA extension.\n\n```bash\n$ ocsprf /path/to/subject/certificate --issuer /path/to/issuer/certificate --verbose \u003e /dev/null\nOCSP Response Data:\n    OCSP Response Status: (0x0)\n    Responses:\n    Certificate ID:\n      Hash Algorithm: sha1\n      Issuer Name Hash: 0123456789ABCDEF0123456789ABCDEF01234567\n      Issuer Key Hash: 0123456789ABCDEF0123456789ABCDEF01234567\n      Serial Number: 0123456789ABCDEF0123456789ABCDEF01234567\n    Cert Status: good\n    This Update: 2020-01-01 12:00:00 UTC\n    Next Update: 2020-01-08 12:00:00 UTC\n```\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthekuwayama%2Focsprf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthekuwayama%2Focsprf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthekuwayama%2Focsprf/lists"}