diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-08-27 08:33:20 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-08-27 09:44:52 -0400 |
commit | 1d6f93c5a4193ad42dd87306c32ac208494b2b78 (patch) | |
tree | d39adbff6bc82965c2a303e63cd077501c4de8db | |
parent | b155730f717c33c8bbdc20d4931fbedaf6290774 (diff) | |
download | pfsense-1d6f93c5a4193ad42dd87306c32ac208494b2b78.zip pfsense-1d6f93c5a4193ad42dd87306c32ac208494b2b78.tar.gz |
Removed debuggery
-rw-r--r-- | src/usr/local/www/system_camanager.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/usr/local/www/system_camanager.php b/src/usr/local/www/system_camanager.php index c5a3138..e65315a 100644 --- a/src/usr/local/www/system_camanager.php +++ b/src/usr/local/www/system_camanager.php @@ -40,7 +40,6 @@ require("guiconfig.inc"); require_once("certs.inc"); -print_r($_POST); $ca_methods = array( "existing" => gettext("Import an existing Certificate Authority"), @@ -247,17 +246,15 @@ if ($_POST) { array_push($input_errors, gettext("Please select a valid Digest Algorithm.")); } } - print('Here 1<br />'); + /* if this is an AJAX caller then handle via JSON */ if (isAjax() && is_array($input_errors)) { - print('Here 2<br />'); input_errors2Ajax($input_errors); exit; } /* save modifications */ if (!$input_errors) { - print('Here 3<br />'); $ca = array(); if (!isset($pconfig['refid']) || empty($pconfig['refid'])) { $ca['refid'] = uniqid(); @@ -306,6 +303,7 @@ if ($_POST) { 'organizationName' => $pconfig['dn_organization'], 'emailAddress' => $pconfig['dn_email'], 'commonName' => $pconfig['dn_commonname']); + if (!ca_inter_create($ca, $pconfig['keylen'], $pconfig['lifetime'], $dn, $pconfig['caref'], $pconfig['digest_alg'])) { while ($ssl_err = openssl_error_string()) { $input_errors = array(); |