Skip to content

openssl: no server cert is only okay if also not pinned - #22660

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/no-cert-pin-check
Closed

bagder wants to merge 2 commits into
masterfrom
bagder/no-cert-pin-check

Conversation

@bagder

@bagder bagder commented Aug 24, 2026

Copy link
Copy Markdown
Member

Reported-by: Stanislav Fort

@bagder bagder added the TLS label Aug 24, 2026
@bagder
bagder marked this pull request as ready for review August 24, 2026 21:44
@bagder
bagder requested a review from icing August 24, 2026 21:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Tightens OpenSSL TLS peer-certificate handling so that “no server certificate” is only treated as acceptable when certificate verification is disabled and no public-key pinning is configured, aligning behavior with the intent of pinned public key verification.

Changes:

  • Refactors pinned-public-key option selection into a shared helper (pinned()), including proxy vs non-proxy selection.
  • Updates the “no peer certificate” fast-path to also require that no pinned public key is configured before accepting the connection.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/vtls/openssl.c
Comment thread lib/vtls/openssl.c
@bagder bagder closed this in 5267ed8 Aug 25, 2026
@bagder
bagder deleted the bagder/no-cert-pin-check branch August 25, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants