matrix-org / matrix-federation-tester

Tester for matrix federation written in golang.
81 stars 17 forks source link

Infer SNI from serverHost #45

Closed anoadragon453 closed 5 years ago

anoadragon453 commented 5 years ago

This sets the SNI to whatever serverHost is, which should be "example.com", or in the case of .well-known in use, something like "matrix.example.com".

Please let me know if I misunderstood how SNI works :)

Fixes #28

babolivier commented 5 years ago

Just gave it a spin, you might want to make sure there's no port in the SNI since .well-known can include one (as it tries to request a certificate for trelawney.brendanabolivier.com:443 on my labs homeserver, which fails).

anoadragon453 commented 5 years ago

Ack, good point. Luckily we just introduced a handy method in gomatrixserverlib to do this for us!

richvdh commented 5 years ago

(I fixed the things above)

anoadragon453 commented 5 years ago

Cool thanks :+1:

richvdh commented 5 years ago

(and deployed \o/)