Skip to content

Comments

Fix Config.InsecureSkipTimeVerify not being respected#303

Merged
gaukas merged 1 commit intorefraction-networking:masterfrom
adotkhan:time-skip-verify
Jul 16, 2024
Merged

Fix Config.InsecureSkipTimeVerify not being respected#303
gaukas merged 1 commit intorefraction-networking:masterfrom
adotkhan:time-skip-verify

Conversation

@adotkhan
Copy link
Contributor

This PR fixes an issue where server cert expiry is verified even though Config.InsecureSkipTimeVerify is set to true.

It seems that this issue has come about after the uTLS sync with Go 1.21, where the upstream crypto/tls has moved the code to verify server cert expiry above the InsecureSkipVerify check.

@gaukas gaukas self-requested a review July 16, 2024 03:47
Copy link
Contributor

@gaukas gaukas left a comment

Choose a reason for hiding this comment

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

Thanks for the nice catch! Currently uTLS has inadequate test coverage which leads to bug risks as such.

@gaukas
Copy link
Contributor

gaukas commented Jul 16, 2024

If no more edits are going to be made on this pull request, I will be merging it by the end of day. Let me know before that if you want me to hold @adotkhan.

@gaukas gaukas merged commit 206f659 into refraction-networking:master Jul 16, 2024
@adotkhan adotkhan deleted the time-skip-verify branch July 16, 2024 16:02
@adotkhan
Copy link
Contributor Author

Thanks for the quick review.

sardanioss pushed a commit to sardanioss/utls that referenced this pull request Jan 16, 2026
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.

2 participants