Skip to content

Test client authentication (mtls) with --insecure, clientAuth EKU only#17493

Closed
yedayak wants to merge 3 commits intocurl:masterfrom
yedayak:mtls-insecure
Closed

Test client authentication (mtls) with --insecure, clientAuth EKU only#17493
yedayak wants to merge 3 commits intocurl:masterfrom
yedayak:mtls-insecure

Conversation

@yedayak
Copy link
Copy Markdown
Contributor

@yedayak yedayak commented May 30, 2025

  • If there were two tests using the "https-mtls" server there was a perl unbound variable error, since certfile wan't set.
    Additionally, once the responsiveserver function was actually called, it failed finding a responsiveness function. For now I made it use the verifypid function, since the curl execution in verifyhttp doesn't know about client certificates.
  • Run mtls tests with --insecure.
  • The google chrome root program will stop allowing roots that have both clientAuth and ServerAuth [1]. In one of the mtls tests, use a certificate with only the clientAuth EKU.

[1] https://googlechrome.github.io/chromerootprogram/#322-pki-hierarchies-included-in-the-chrome-root-store

yedayak added 2 commits May 30, 2025 18:40
If there were two tests using the "https-mtls" server there was a
perl unbound variable error, since certfile wan't set.
Additionally, once the responsiveserver function was actually called, it
failed finding a responsiveness function. For now I made it use the
`verifypid` function, since the curl execution in `verifyhttp` doesn't know about
client certificates.
@github-actions github-actions bot added the tests label May 30, 2025
The google chrome root program will stop allowing roots that have both
clientAuth and ServerAuth [1].

In one of the mtls tests, use a certificate with only the clientAuth
EKU.

[1] https://googlechrome.github.io/chromerootprogram/#322-pki-hierarchies-included-in-the-chrome-root-store
@yedayak yedayak changed the title Test client authentication (mtls) with --insecure Test client authentication (mtls) with --insecure, clientAuth EKU only May 30, 2025
@testclutch

This comment was marked as outdated.

@bagder bagder closed this in 215b5f3 May 31, 2025
bagder pushed a commit that referenced this pull request May 31, 2025
bagder pushed a commit that referenced this pull request May 31, 2025
The google chrome root program will stop allowing roots that have both
clientAuth and ServerAuth [1].

In one of the mtls tests, use a certificate with only the clientAuth
EKU.

[1] https://googlechrome.github.io/chromerootprogram/#322-pki-hierarchies-included-in-the-chrome-root-store

Closes #17493
@bagder
Copy link
Copy Markdown
Member

bagder commented May 31, 2025

Thanks!

vszakats added a commit to vszakats/curl that referenced this pull request Feb 26, 2026
vszakats added a commit to vszakats/curl that referenced this pull request Feb 26, 2026
Also alpha sort lists, while here.

Follow-up to 2cf19c2 curl#17493

Closes curl#20728
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