printf(_("Unable to match '%s' against any domain validated against your account."), $CN);
echo _("There were no valid CommonName fields on the CSR, or I was unable to match any of these against your account. Please review your CSR, or add and verify domains contained in it to your account before trying again.");
printf(_("Malformed subjectAltName '%s', must be in form DNS:my.isp.com or DNS:*.isp.com"), $subalt);
showfooter();
exit;
}
$alt = substr($subalt, 4);
$alt = substr($subalt, 4);
$bits = explode(".", $alt);
$bits = explode(".", $alt);
@ -322,13 +319,7 @@
}
}
}
}
if($_SESSION['_config']['altrow'] == "")
if($_SESSION['_config']['altrow'] != "")
{
showheader(_("My CAcert.org Account!"));
printf(_("Malformed subjectAltName, must be in form DNS:my.isp.com or DNS:*.isp.com OR '%s' can't be matched to any current domain validated against your account."), $alt);
showfooter();
exit;
} else
$altrows[] = $subalt;
$altrows[] = $subalt;
}
}
$_SESSION['_config']['altrows'] = $altrows;
$_SESSION['_config']['altrows'] = $altrows;
@ -363,14 +354,15 @@
}
}
}
}
if($_SESSION['_config']['row'] == "")
if($_SESSION['_config']['row'] != "")
$rows[] = $CN;
}
if(count($rows) <= 0)
{
{
showheader(_("My CAcert.org Account!"));
showheader(_("My CAcert.org Account!"));
printf(_("Unable to match '%s' against any domain validated against your account."), $CN);
echo _("There were no valid CommonName fields on the CSR, or I was unable to match any of these against your account. Please review your CSR, or add and verify domains contained in it to your account before trying again.");
printf(_("Malformed subjectAltName '%s', must be in form DNS:my.isp.com or DNS:*.isp.com"), $subalt);
showfooter();
exit;
}
$alt = substr($subalt, 4);
$alt = substr($subalt, 4);
$bits = explode(".", $alt);
$bits = explode(".", $alt);
@ -413,13 +400,7 @@
}
}
}
}
if($_SESSION['_config']['altrow'] == "")
if($_SESSION['_config']['altrow'] != "")
{
showheader(_("My CAcert.org Account!"));
printf(_("Malformed subjectAltName, must be in form DNS:my.isp.com or DNS:*.isp.com OR '%s' can't be matched to any current domain validated against your account."), $alt);
$body .= _("To help improve the trust of CAcert in general, it's appreciated if you could also sign our key and upload it to a key server. Below is a copy of our primary key details:")."\n\n";