New check_credentials function, and the check_common_name function how handles the subjectAltName type. MDL-11020, MDL-10326
New check_credentials function, and the check_common_name function how handles the subjectAltName type. MDL-11020, MDL-10326

dilawar/moodle