Skip to content

fix: allow trailing period in SNI and CN for SSL#11414

Merged
shreemaan-abhishek merged 7 commits into
apache:masterfrom
shreemaan-abhishek:fix-trailing-dot
Jul 18, 2024
Merged

fix: allow trailing period in SNI and CN for SSL#11414
shreemaan-abhishek merged 7 commits into
apache:masterfrom
shreemaan-abhishek:fix-trailing-dot

Conversation

@shreemaan-abhishek

Copy link
Copy Markdown
Contributor

Description

APISIX would disallow requests under TLS if there was a mismatch based difference of presence/absence of a trailing period between SNI and CN. This has been fixed.

Check test cases for more info.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

Comment thread apisix/ssl.lua Outdated


function _M.fetch_cert(sni, cert)
core.log.warn(debug.traceback())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we remove this debug log? others LGTM

@Revolyssup
Revolyssup self-requested a review July 18, 2024 06:44
@shreemaan-abhishek
shreemaan-abhishek merged commit 85a6348 into apache:master Jul 18, 2024
@shreemaan-abhishek
shreemaan-abhishek deleted the fix-trailing-dot branch July 18, 2024 09:16
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.

4 participants