{{{ #!/usr/bin/php &1`)); $keysize = $host = $cipher = $protocol = $issuer = ""; foreach($lines as $line) { $line = trim($line); if(substr($line, 0, 7) == "issuer=") $issuer = substr($line, 7); if(substr($line, 0, 8) == "Protocol") $protocol = substr($line, 12); if(substr($line, 0, 6) == "Cipher") $cipher = substr($line, 12); if(substr($line, 0, 21) == "Server public key is ") $keysize = substr($line, 21, -4); } if($issuer == "") continue; $host = array("ip" => $ip, "issuer" => $issuer, "protocol" => $protocol, "cipher" => $cipher, "keysize" => $keysize); print_r($host); } ?> }}}