From cb573e2b6642d677cfbadb15a7e7d405d5a324cc Mon Sep 17 00:00:00 2001 From: John Crisp Date: Fri, 28 Feb 2020 11:59:15 +0100 Subject: [PATCH] Create or create and download. Code tidy. Swap Submit button --- ca/request_cert.php | 67 +++++++++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 29 deletions(-) diff --git a/ca/request_cert.php b/ca/request_cert.php index 8b2cbee..632d540 100644 --- a/ca/request_cert.php +++ b/ca/request_cert.php @@ -188,7 +188,8 @@ case 'confirm':

-   +   +  
@@ -212,13 +213,12 @@ case 'confirm': break; case 'final': - if ($submit == "Yes! Create and Download") { + if ($submit == "Yes Create and Download" || $submit == "Yes. Just Create") { if (! $serial = CAdb_in($email,$common_name)) { list($ret,$errtxt) = CA_create_cert($cert_type, $country, $province, $locality, $organization, $unit, $common_name, $email, $expiry, $passwd, $keysize, $dns_names, $ip_addr); if (! $ret) { printHeader(); - ?>
@@ -233,7 +233,6 @@ case 'final':

+
@@ -329,8 +335,8 @@ default: @@ -379,9 +385,12 @@ default: - + + + + - +
Certificate Life*
  
* Fields are required* Fields are required