Skip to content

Different forms of writing the same IPv6 address are considered different servers #770

@Mihara

Description

@Mihara

Consider an Yggdrasil network bare IP Gemini server, 200:804a:.....:bc7c:9ba9.

If I direct Lagrange to gemini://[200:804a:.....:bc7c:9ba9]/, it will correctly arrive to the same address as gemini://[200:804a:.....:bc7c:9BA9]/, (note the uppercase). However, it will consider both different servers and ask me to trust the same certificate again.

In both cases, it will also fail to identify that the certificate includes the correct IP address ("received a certificate for a different domain", etc) - not entirely sure why, but mkcert generates certificates which list IP addresses separately in Subject Alternate Names (DNS:xxxx.ygg, DNS: xxxx.ygg.at, IP Address:200:....:9BA9) which is probably the reason and probably should be supported.

Notably, altering the upper/lower case on a domain name will not cause Largange to misrecognize a server this way, the certificate remains trusted. But it will cause it to generate a different theme seed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions