-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNI names are case sensitive #301
Comments
|
We could probably change this instead: Lines 607 to 608 in 2e68a70
Instead of |
Doesn't work for me. Changed to:
But still a wrong certificate is selected (first from the configuration, not the matching one) and I get:
I don't know the internals of UTHASH. There is some hashing on the key with HASH_FCN. |
Duh, my bad. We should instead |
I've found an feature request for case-less find in uthash: troydhanson/uthash#149 |
I tried to add a new hashing function based on the default HASH_JEN, which basically works the same, but ignores the 5th bit in comparison. This works together with the change of HASH_KEYCMP. There needs to be an additional define in config.h:
The patch is:
|
We'll probably discuss it with the team on Monday. |
I have both versions in my fork for testing: |
I wasn't around last Monday to bring this up and was unavailable this week. One thing that occurred to me is that we are basically discussing case-insensitivity in an ASCII context and we should also look at IDNA before we move forward with this. |
That was just a quick fix, because I needed to get it to work asap. And we only have domain names and certificate CNs is ASCII, so IDNs weren't a problem for me.
While with diacritical characters the generated punycode is lowercase:
|
Although at this point it's the same good old key. Refs #301
Although at this point it's the same good old key. Refs #301
Currently certificate selection based on an SNI name is case-sensitive. If you connect to hitch server with eg.
curl https://HOST.EXAMPLE.COM/
it will not find a certificate for host.example.com.The suggestion is to convert servername to lowercase before sni_lookup.
The text was updated successfully, but these errors were encountered: