This issue was originally created by @anoadragon453 at matrix-org/dendrite#760.
MSC1711 states that federation connections must only be made to homeservers that have a valid X.509 (SSL) certificate. The specification states this as well, thus Dendrite must enforce it.