Skip to content

MDEV-35812: Galera SST fails with TLS certificate containing an intermediate CA#5329

Open
hemantdangi-gc wants to merge 1 commit into
MariaDB:10.6from
mariadb-corporation:10.6-MDEV-35812
Open

MDEV-35812: Galera SST fails with TLS certificate containing an intermediate CA#5329
hemantdangi-gc wants to merge 1 commit into
MariaDB:10.6from
mariadb-corporation:10.6-MDEV-35812

Conversation

@hemantdangi-gc

Copy link
Copy Markdown
Contributor

Issue:
Verify_ca_matches_cert ran "openssl verify -CAfile ", which treats only the first cert in the file as the target. For a leaf+intermediate bundle against a root-only CA, openssl cannot reach the root, so the check aborts the SST (exit 22).

Solution:
Pass the cert file as -untrusted so bundled intermediates complete the chain to the CA. Trust anchor is unchanged (still -CAfile only).

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@plampio plampio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@hemantdangi-gc
hemantdangi-gc force-pushed the 10.6-MDEV-35812 branch 2 times, most recently from 86b6dfa to 83afb8a Compare July 8, 2026 05:13
…mediate CA

Issue:
Verify_ca_matches_cert ran "openssl verify -CAfile <ca> <cert>", which
treats only the first cert in the file as the target. For a leaf+intermediate
bundle against a root-only CA, openssl cannot reach the root, so the check
aborts the SST (exit 22).

Solution:
Pass the cert file as -untrusted so bundled intermediates complete
the chain to the CA. Trust anchor is unchanged (still -CAfile only).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants