Are you sure? After creation you will be returned to the Create Certificate dialogue.
+
+
+
+
+
+
- ';
- fwrite($fp, $x);
- fclose($fp);
+ # Save user's defaults
+ $fp = fopen($user_cnf, 'w');
+ $x = '';
+ fwrite($fp, $x);
+ fclose($fp);
break;
@@ -263,21 +263,27 @@ switch ($form_stage) {
}
}
+
+ // This section is disabled in the form above
+ // If we do Download it does not return to Create New cert
+ // I believe this is because the upload function messes the http headers
+ // There may be a solution but I haven't got one
+
if ($submit == "Yes. Create and Download") {
switch ($cert_type) {
case 'server':
- # upload(array("$config[private_dir]/$serial-key.pem","$config[new_certs_dir]/$serial.pem",$config['cacert_pem']), "$common_name ($email).pem",'application/pkix-cert');
+ # upload(array("$config[private_dir]/$serial-key.pem","$config[new_certs_dir]/$serial.pem",$config['cacert_pem']), "$common_name ($email).pem",'application/pkix-cert');
upload(array($config['private_dir'] . "/$serial-key.pem",$config['new_certs_dir'] . "/$serial.pem",$config['cacert_pem']), $rec['common_name'] . "-Bundle.pem", 'application/pkix-cert');
- break;
+ break; # << Here
case 'email':
case 'email_signing':
case 'time_stamping':
case 'vpn_client_server':
case 'vpn_client':
case 'vpn_server':
- # upload("$config[pfx_dir]/$serial.pfx", "$common_name ($email).p12", 'application/x-pkcs12');
+ # upload("$config[pfx_dir]/$serial.pfx", "$common_name ($email).p12", 'application/x-pkcs12');
upload($config['pfx_dir'] . "/$serial.pfx", $rec['common_name'] . ".p12", 'application/x-pkcs12');
- break;
+ break; # << here
}
# Clear common_name fields