mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
511f8c46b7
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.