More formatting
This commit is contained in:
@@ -261,8 +261,8 @@ switch ($stage) {
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Certificate Life </td>
|
<td>Certificate Life </td>
|
||||||
<td><select name=expiry>
|
<td><select name=expiry>
|
||||||
<?php
|
|
||||||
|
|
||||||
|
<?php
|
||||||
print "<option value=0.083 " . ($expiry == 1 ? "selected='selected'" : "") . " >1 Month</option>\n" ;
|
print "<option value=0.083 " . ($expiry == 1 ? "selected='selected'" : "") . " >1 Month</option>\n" ;
|
||||||
print "<option value=0.25 " . ($expiry == 1 ? "selected='selected'" : "") . " >3 Months</option>\n" ;
|
print "<option value=0.25 " . ($expiry == 1 ? "selected='selected'" : "") . " >3 Months</option>\n" ;
|
||||||
print "<option value=0.5 " . ($expiry == 1 ? "selected='selected'" : "") . " >6 Months</option>\n" ;
|
print "<option value=0.5 " . ($expiry == 1 ? "selected='selected'" : "") . " >6 Months</option>\n" ;
|
||||||
@@ -270,7 +270,6 @@ switch ($stage) {
|
|||||||
for ($i = 2; $i <= 5; $i++) {
|
for ($i = 2; $i <= 5; $i++) {
|
||||||
print "<option value=$i " . ($expiry == $i ? "selected='selected'" : "") . " >$i Years</option>\n" ;
|
print "<option value=$i " . ($expiry == $i ? "selected='selected'" : "") . " >$i Years</option>\n" ;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</select></td>
|
</select></td>
|
||||||
@@ -323,8 +322,8 @@ switch ($stage) {
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
printHeader('ca');
|
printHeader('ca');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<body onLoad="self.focus();document.filter.search.focus();">
|
<body onLoad="self.focus();document.filter.search.focus();">
|
||||||
<table style="margin:0 auto">
|
<table style="margin:0 auto">
|
||||||
<tr><th colspan=9><big>CERTIFICATE MANAGEMENT CONTROL PANEL</big></th></tr>
|
<tr><th colspan=9><big>CERTIFICATE MANAGEMENT CONTROL PANEL</big></th></tr>
|
||||||
@@ -342,6 +341,7 @@ switch ($stage) {
|
|||||||
</form>
|
</form>
|
||||||
</center></td>
|
</center></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (! $sortfield) {
|
if (! $sortfield) {
|
||||||
|
@@ -372,7 +372,7 @@ switch ($form_stage) {
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Certificate Password<font color=red size=3>*</font><br>(Mandatory for Email,SSL Client,Code signing)</td>
|
<td>Certificate Password<font color=red size=3> *</font><br>(Min 8 chars - Mandatory for Email,SSL Client,Code signing)</td>
|
||||||
<td><input type=password name=passwd value="<?php echo htvar($passwd) ?>" size=30> Again <input type=password name=passwdv value="<?php echo htvar($passwdv) ?>" size=30></td>
|
<td><input type=password name=passwd value="<?php echo htvar($passwd) ?>" size=30> Again <input type=password name=passwdv value="<?php echo htvar($passwdv) ?>" size=30></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@@ -439,7 +439,6 @@ switch ($form_stage) {
|
|||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
printFooter();
|
printFooter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -332,9 +332,9 @@ switch ($stage) {
|
|||||||
\$config['index'] = \$config['ca_dir'] . '/index.txt';
|
\$config['index'] = \$config['ca_dir'] . '/index.txt';
|
||||||
\$config['serial'] = \$config['ca_dir'] . '/serial';
|
\$config['serial'] = \$config['ca_dir'] . '/serial';
|
||||||
\$config['random'] = \$config['ca_dir'] . '/.rnd';
|
\$config['random'] = \$config['ca_dir'] . '/.rnd';
|
||||||
\$config['cacert_pem'] = \$config['cert_dir'] . '/cacert.pem';
|
|
||||||
\$config['cacrl_pem'] = \$config['crl_dir'] . '/cacrl.pem';
|
\$config['cacrl_pem'] = \$config['crl_dir'] . '/cacrl.pem';
|
||||||
\$config['cacrl_der'] = \$config['crl_dir'] . '/cacrl.crl';
|
\$config['cacrl_der'] = \$config['crl_dir'] . '/cacrl.crl';
|
||||||
|
\$config['cacert_pem'] = \$config['cert_dir'] . '/cacert.pem';
|
||||||
\$config['cakey'] = \$config['private_dir'] . '/cakey.pem';
|
\$config['cakey'] = \$config['private_dir'] . '/cakey.pem';
|
||||||
|
|
||||||
# Default OpenSSL Config File.
|
# Default OpenSSL Config File.
|
||||||
@@ -580,7 +580,6 @@ subjectKeyIdentifier = hash
|
|||||||
authorityKeyIdentifier = keyid:always, issuer:always
|
authorityKeyIdentifier = keyid:always, issuer:always
|
||||||
subjectAltName = DNS:$common_name,email:copy
|
subjectAltName = DNS:$common_name,email:copy
|
||||||
|
|
||||||
|
|
||||||
[ crl_ext ]
|
[ crl_ext ]
|
||||||
issuerAltName=issuer:copy
|
issuerAltName=issuer:copy
|
||||||
authorityKeyIdentifier=keyid:always,issuer:always
|
authorityKeyIdentifier=keyid:always,issuer:always
|
||||||
@@ -675,7 +674,7 @@ EOS;
|
|||||||
fclose($fd);
|
fclose($fd);
|
||||||
|
|
||||||
#
|
#
|
||||||
# Intialize index.txt and serial files
|
# Initialize index.txt and serial files
|
||||||
#
|
#
|
||||||
$fd = fopen($config['index'], 'w');
|
$fd = fopen($config['index'], 'w');
|
||||||
fwrite($fd, "");
|
fwrite($fd, "");
|
||||||
|
Reference in New Issue
Block a user