{"id":21519358,"url":"https://github.com/alexwayfer/faraday-pkcs7","last_synced_at":"2026-02-20T18:32:32.987Z","repository":{"id":38181174,"uuid":"414239707","full_name":"AlexWayfer/faraday-pkcs7","owner":"AlexWayfer","description":"Faraday middleware for encryption and decryption PKCS7 containers","archived":false,"fork":false,"pushed_at":"2025-03-27T21:35:36.000Z","size":78,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T13:12:12.433Z","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/AlexWayfer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-10-06T14:13:01.000Z","updated_at":"2021-10-06T14:18:24.000Z","dependencies_parsed_at":"2025-03-17T16:50:02.920Z","dependency_job_id":"2b6af467-ad89-45b8-9bdf-a4989f123562","html_url":"https://github.com/AlexWayfer/faraday-pkcs7","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexWayfer/faraday-pkcs7","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Ffaraday-pkcs7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Ffaraday-pkcs7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Ffaraday-pkcs7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Ffaraday-pkcs7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexWayfer","download_url":"https://codeload.github.com/AlexWayfer/faraday-pkcs7/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Ffaraday-pkcs7/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29660039,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"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":[],"created_at":"2024-11-24T00:57:32.481Z","updated_at":"2026-02-20T18:32:32.955Z","avatar_url":"https://github.com/AlexWayfer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Faraday PKCS7\n\n[![Gem](https://img.shields.io/gem/v/faraday-pkcs7.svg?style=flat-square)](https://rubygems.org/gems/faraday-pkcs7)\n[![License](https://img.shields.io/github/license/AlexWayfer/faraday-pkcs7.svg?style=flat-square)](LICENSE.md)\n\nFaraday middleware for encryption and decryption PKCS7 containers.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'faraday-pkcs7'\n```\n\nAnd then execute:\n\n```shell\nbundle install\n```\n\nOr install it yourself as:\n\n```shell\ngem install faraday-pkcs7\n```\n\n## Usage\n\n```ruby\nrequire 'faraday/pkcs7'\n\nclient_cert = OpenSSL::X509::Certificate.new(File.read('path/to/cer_file'))\nclient_key = OpenSSL::PKey::RSA.new(File.read('path/to/key_file'), 'passphrase or empty string')\n\nserver_cert = OpenSSL::X509::Certificate.new(File.read('path/to/cer_file'))\ncert_store = OpenSSL::X509::Store.new\n\nFaraday.new(\n  url: 'https://example.com/api/'\n) do |faraday|\n  faraday.use :pkcs7,\n    encrypt: false,\n    encryption_options: {\n      key: client_key,\n      certificate: client_cert,\n      flags: OpenSSL::PKCS7::BINARY | OpenSSL::PKCS7::NOCERTS | OpenSSL::PKCS7::NOCHAIN\n    },\n    decrypt: false,\n    decryption_options: {\n      ca_store: cert_store,\n      public_certificate: server_cert,\n      flags: OpenSSL::PKCS7::NOVERIFY\n    }\nend\n```\n\nOptions are optional, by default encryption and decryption are enabled. When disabled — there are only signing\nwithout encryption and verifying without decryption.\n\nFor `encryption_options` and `decryption_options` see underlying gem: https://github.com/dmuneras/pkcs7-cryptographer\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies.\n\nThen, run `bin/test` to run the tests.\n\nTo install this gem onto your local machine, run `rake build`.\n\nTo release a new version, make a commit with a message such as \"Bumped to 0.0.2\" and then run `rake release`.\nSee how it works [here](https://bundler.io/guides/creating_gem.html#releasing-the-gem).\n\n## Contributing\n\nBug reports and pull requests are welcome on [GitHub](https://github.com/AlexWayfer/faraday-pkcs7).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwayfer%2Ffaraday-pkcs7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexwayfer%2Ffaraday-pkcs7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwayfer%2Ffaraday-pkcs7/lists"}