Skip to content

fix: support loading full TLS certificate chains#94

Open
szediwy wants to merge 1 commit into
turing-machines:masterfrom
szediwy:fix/tls-chain-loading
Open

fix: support loading full TLS certificate chains#94
szediwy wants to merge 1 commit into
turing-machines:masterfrom
szediwy:fix/tls-chain-loading

Conversation

@szediwy

@szediwy szediwy commented Feb 10, 2026

Copy link
Copy Markdown

The current implementation of load_tls_config only loads the first certificate from the PEM file, which ignores intermediate certificates. This causes TLS verification failures on clients that do not have the intermediate CA in their trust store.

This PR updates load_keys_from_pem to use X509::stack_from_pem and iterates through the resulting stack in load_tls_config to add intermediate certificates to the TLS context using add_extra_chain_cert.

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.

2 participants