If anybody would like to see in the future, here is the code I am using to detect if the domain has SSL
<?php
$SSL_Check = @fsockopen("ssl://www.domain.com/", 443, $errno, $errstr, 30);
if (!$SSL_Check) {
echo "SSL Not Available";
} else {
echo "SSL Available";
fclose($SSL_Check);
}?>
If www.domain.com has SSL the code works, if not then as fsockopen throws an error you can suppress it with the @ and the reply comes back as SSL Not Available