Skip to content

Fix CERT_REQUIRED verify mode not setting SSL_VERIFY_FAIL_IF_NO_PEER_CERT and therefore failing to verify the client cert.#62

Merged
lealem47 merged 2 commits intowolfSSL:masterfrom
kareem-wolfssl:verifyMode
Dec 17, 2025
Merged

Fix CERT_REQUIRED verify mode not setting SSL_VERIFY_FAIL_IF_NO_PEER_CERT and therefore failing to verify the client cert.#62
lealem47 merged 2 commits intowolfSSL:masterfrom
kareem-wolfssl:verifyMode

Conversation

@kareem-wolfssl
Copy link
Contributor

Currently CERT_REQUIRED is behaving as CERT_OPTIONAL is described ie. the client cert is validated but the connection does not close if it is found to be invalid.

Thanks to Matan Radomski for the report.

…CERT and therefore failing to verify the client cert.

Thanks to Matan Radomski for the report.
@kareem-wolfssl
Copy link
Contributor Author

PRB script needs an update: https://github.com/wolfSSL/testing/pull/906

@kareem-wolfssl
Copy link
Contributor Author

Retest this please

@lealem47
Copy link
Contributor

Changes look good. Can you add some testing that would have failed before this fix?

…IRED is set and the client doesn't send a cert.
@lealem47 lealem47 merged commit 45a4151 into wolfSSL:master Dec 17, 2025
2 checks passed
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.

3 participants