exit; } if ($argv[1] == "--client-server") { autosigned_certificate_server_client($argv[2]); exit; } if ($argv[1] == "--client-nginx") { build_client_side_certificate($argv[2]); exit; } if ($argv[1] == "--pvk") { pvk_convert($argv[2]); exit; } if ($argv[1] == "--pfx-convert") { pfx_convert($argv[2]); exit; } if ($argv[1] == "--cert-infos") { UpdateCertificateInfos($argv[2]); exit; } if ($argv[1] == "--pfx") { build_pfx($argv[2]); exit; } echo "Cannot understand your commandline {$argv[1]}\n"; function BuildCSR($CommonName) { $CommonName = str_replace("_ALL_", "*", $CommonName); buildkey($CommonName, true);
exit; } if (isset($_GET["copy-csr"])) { copy_csr(); exit; } if (isset($_GET["generate-csr"])) { generate_CSR(); exit; } if (isset($_GET["pvk-convert"])) { pvk_convert(); exit; } if (isset($_GET["pfx-convert"])) { pfx_convert(); exit; } if (isset($_GET["generate-pfx"])) { pfx_generate(); exit; } while (list($num, $line) = each($_GET)) { $f[] = "{$num}={$line}"; } writelogs_framework("unable to understand query !!!!!!!!!!!..." . @implode(",", $f), "main()", __FILE__, __LINE__); die; function generate_key() { $unix = new unix(); $nohup = $unix->find_program("nohup");