Commit c228913f authored by Thomas Bella's avatar Thomas Bella

Strip IP Address field from SAN

parent 6ca7bcf4
Pipeline #768 failed with stage
in 20 seconds
......@@ -27,11 +27,12 @@ class CertificateReader {
if (empty(trim($singleRawDomain))) {
continue;
}
$thisDomain = str_replace("DNS:", "", trim($singleRawDomain));
if (in_array($thisDomain, $domains)) {
$singleRawDomain = str_replace("DNS:", "", trim($singleRawDomain));
$singleRawDomain = str_replace("IP Address:", "", trim($singleRawDomain));
if (in_array($singleRawDomain, $domains)) {
continue;
}
$domains[] = $thisDomain;
$domains[] = $singleRawDomain;
}
}
return $domains;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment