MDL-52766 mnet: Support MNet peer URLs longer than 64 characters
commit511f8c46b77ffa2f41922eeb7dadcb6351227ba6
authorDavid Mudrák <david@moodle.com>
Tue, 2 Feb 2016 21:34:04 +0000 (2 22:34 +0100)
committerDavid Mudrák <david@moodle.com>
Thu, 4 Feb 2016 16:08:21 +0000 (4 17:08 +0100)
tree6b28b165ee9de4c7dae27759cf7adc79d8241e76
parent9d5d9c64ff18bd286eed49ef42dc73849f8db65f
MDL-52766 mnet: Support MNet peer URLs longer than 64 characters

The commonName in SSL certificate is limited to 64 characters as per
RFC 5280 (https://www.ietf.org/rfc/rfc5280.txt). We respect that limit
when generating the CN attribute from the site's $CFG->wwwroot. But then
we did not respect it when comparing the common name with the peer's
URL so the certificate was not considered valid.
mnet/peer.php