GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Document explicit certificate stores for restricted CA trust by OskarEichler · Pull Request #61 · lostisland/faraday-net_http

Conversation

@OskarEichler

@OskarEichler OskarEichler commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Document the existing additive CA behavior and show how to restrict trust using an explicit certificate store. Related to #14; this deliberately preserves the existing compatibility policy.

Reproduction and verification

Seven bounded localhost TLS exchanges use two generated synthetic CAs. Default trust and a matching CA succeed; ca_file/ca_path alone retain additive behavior. Adding an explicit empty store correctly rejects the unrelated CA, as does an explicit unrelated cert_store.

Only temporary public certificate files are written; private keys remain in memory. SSL_CERT_FILE/SSL_CERT_DIR changes are confined to the reproduction process and restored. All loopback servers and threads close. A candidate change to the default policy was evaluated locally but is excluded from this PR and the consumer branch after reviewing #14's compatibility discussion.

  • Each focused branch passes all 386 existing RSpec examples with Ruby 4.0.6 through rbenv.
  • The combined installed-3.4.4 branch also passes 386 examples, focused repros, full RuboCop (10 files), syntax, packaging and git diff --check.
  • Verification uses the locally verified Faraday 2.14.3 fixes. No version updates or production operations.

Limitations

No test/spec files added or modified: the originating repository forbids them. Focused reproductions ran outside the repository. Other Ruby versions and platforms have not been run locally. The PR contains only this focused change.

Breaking-change notes

None. Documentation only; certificate/hostname verification and default trust behavior are unchanged.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@OskarEichler
Document explicit certificate stores for restricted CA trust
fca2796
@iMacTia

iMacTia commented Oct 11, 2026

Copy link
Copy Markdown
Member

Verified against a loopback TLS server: ca_file is additive by default, an empty cert_store restricts trust, and ca_file still works with the empty store. The documentation is accurate.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@iMacTia
Merge origin/main into document-restricted-ca-trust
ac5ebfd
Resolve README conflict by keeping both the SOCKS proxy and restricted
certificate authority sections.

Co-authored-by: Copilot <[email protected]>
@iMacTia
iMacTia merged commit 94304c8 into lostisland:main Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@OskarEichler @iMacTia
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.