diff --git a/scripts/servercerts.php b/scripts/servercerts.php index 9b898ac..3f565ad 100755 --- a/scripts/servercerts.php +++ b/scripts/servercerts.php @@ -55,7 +55,10 @@ $row['csr_name'] = "../..".$row['csr_name']; $tmpname = tempnam("/tmp", "servercert"); - $newsubject = ""; + + // MAKE SURE ALL VARIABLES ARE RESET HERE!!! + $SAN = $newsubject = ""; + $fp = fopen($tmpname, "w"); fputs($fp, "basicConstraints = critical, CA:FALSE\n"); fputs($fp, "extendedKeyUsage = clientAuth, serverAuth, nsSGC, msSGC\n");