Skip to content

Allow providing a custom certificate store - #304

Merged
pcai merged 1 commit into
mainfrom
feat/cert-store-opt
Sep 15, 2026
Merged

pcai merged 1 commit into
mainfrom
feat/cert-store-opt

Conversation

@pcai

@pcai pcai commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Adds an opt-in :cert_store option to Viewpoint::EWS::Connection#initialize (also reachable through EWSClient's :http_opts). When given an OpenSSL::X509::Store, it is assigned directly to the HTTPClient SSL config and the :trust_ca handling is skipped.

Why: in some environments the default certificate store fails to verify an otherwise valid chain (e.g. certificate verify failed (unable to get local issuer certificate) against a Let's Encrypt-issued server cert), leaving monkeypatching as the only recourse. This gives those users a supported escape hatch without changing any default behavior.

Supersedes #297, reimplemented from current main.

Add an opt-in :cert_store option to EWS::Connection so callers can pass a
fully-built OpenSSL::X509::Store (e.g. one with system default paths) that
is assigned directly to the HTTPClient ssl config, skipping the :trust_ca
handling. Useful in environments where the default store fails to verify
an otherwise valid chain.

Add specs covering the passthrough.
@pcai
pcai merged commit d36a7c9 into main Sep 15, 2026
15 checks passed
@pcai
pcai deleted the feat/cert-store-opt branch September 15, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant