Project

General

Profile

Download (19.7 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/*
3
	system_crlmanager.php
4
	
5
	Copyright (C) 2010 Jim Pingle
6
	All rights reserved.
7
	
8
	Redistribution and use in source and binary forms, with or without
9
	modification, are permitted provided that the following conditions are met:
10
	
11
	1. Redistributions of source code must retain the above copyright notice,
12
	this list of conditions and the following disclaimer.
13
	
14
	2. Redistributions in binary form must reproduce the above copyright
15
	notice, this list of conditions and the following disclaimer in the
16
	documentation and/or other materials provided with the distribution.
17
	
18
	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
19
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
20
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
22
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
	POSSIBILITY OF SUCH DAMAGE.
28
*/
29
/*
30
	pfSense_MODULE:	certificate_managaer
31
*/
32

    
33
##|+PRIV
34
##|*IDENT=page-system-crlmanager
35
##|*NAME=System: CRL Manager
36
##|*DESCR=Allow access to the 'System: CRL Manager' page.
37
##|*MATCH=system_crlmanager.php*
38
##|-PRIV
39

    
40
require("guiconfig.inc");
41
require_once("certs.inc");
42
require_once('openvpn.inc');
43

    
44
global $openssl_crl_status;
45

    
46
$pgtitle = array(gettext("System"), gettext("Certificate Revocation List Manager"));
47

    
48
$crl_methods = array(
49
	"internal" => gettext("Create an internal Certificate Revocation List"),
50
	"existing" => gettext("Import an existing Certificate Revocation List"));
51

    
52
$id = $_GET['id'];
53
if (isset($_POST['id']))
54
	$id = $_POST['id'];
55

    
56
if (!is_array($config['ca']))
57
	$config['ca'] = array();
58

    
59
$a_ca =& $config['ca'];
60

    
61
if (!is_array($config['cert']))
62
	$config['cert'] = array();
63

    
64
$a_cert =& $config['cert'];
65

    
66
if (!is_array($config['crl']))
67
	$config['crl'] = array();
68

    
69
$a_crl =& $config['crl'];
70

    
71
foreach ($a_crl as $cid => $acrl)
72
	if (!isset($acrl['refid']))
73
		unset ($a_crl[$cid]);
74

    
75
$act = $_GET['act'];
76
if ($_POST['act'])
77
	$act = $_POST['act'];
78

    
79
if (!empty($id))
80
	$thiscrl =& lookup_crl($id);
81

    
82
// If we were given an invalid crlref in the id, no sense in continuing as it would only cause errors.
83
if (!$thiscrl && (($act != "") && ($act != "new"))) {
84
	pfSenseHeader("system_crlmanager.php");
85
	$act="";
86
	$savemsg = gettext("Invalid CRL reference.");
87
}
88

    
89
if ($act == "del") {
90
	$name = $thiscrl['descr'];
91
	if (crl_in_use($id)) {
92
		$savemsg = sprintf(gettext("Certificate Revocation List %s is in use and cannot be deleted"), $name) . "<br/>";
93
	} else {
94
		foreach ($a_crl as $cid => $acrl)
95
			if ($acrl['refid'] == $thiscrl['refid'])
96
				unset($a_crl[$cid]);
97
		write_config("Deleted CRL {$name}.");
98
		$savemsg = sprintf(gettext("Certificate Revocation List %s successfully deleted"), $name) . "<br/>";
99
	}
100
}
101

    
102
if ($act == "new") {
103
	$pconfig['method'] = $_GET['method'];
104
	$pconfig['caref'] = $_GET['caref'];
105
	$pconfig['lifetime'] = "9999";
106
	$pconfig['serial'] = "0";
107
}
108

    
109
if ($act == "exp") {
110
	$exp_name = urlencode("{$thiscrl['descr']}.crl");
111
	$exp_data = base64_decode($thiscrl['text']);
112
	$exp_size = strlen($exp_data);
113

    
114
	header("Content-Type: application/octet-stream");
115
	header("Content-Disposition: attachment; filename={$exp_name}");
116
	header("Content-Length: $exp_size");
117
	echo $exp_data;
118
	exit;
119
}
120

    
121
if ($act == "addcert") {
122
	if ($_POST) {
123
		unset($input_errors);
124
		$pconfig = $_POST;
125

    
126
		if (!$pconfig['crlref'] || !$pconfig['certref']) {
127
			pfSenseHeader("system_crlmanager.php");
128
			exit;
129
		}
130

    
131
		// certref, crlref
132
		$crl =& lookup_crl($pconfig['crlref']);
133
		$cert = lookup_cert($pconfig['certref']);
134

    
135
		if (!$crl['caref'] || !$cert['caref']) {
136
			$input_errors[] = gettext("Both the Certificate and CRL must be specified.");
137
		}
138

    
139
		if ($crl['caref'] != $cert['caref']) {
140
			$input_errors[] = gettext("CA mismatch between the Certificate and CRL. Unable to Revoke.");
141
		}
142
		if (!is_crl_internal($crl)) {
143
			$input_errors[] = gettext("Cannot revoke certificates for an imported/external CRL.");
144
		}
145

    
146
		if (!$input_errors) {
147
			$reason = (empty($pconfig['crlreason'])) ? OCSP_REVOKED_STATUS_UNSPECIFIED : $pconfig['crlreason'];
148
			cert_revoke($cert, $crl, $reason);
149
			openvpn_refresh_crls();
150
			write_config("Revoked cert {$cert['descr']} in CRL {$crl['descr']}.");
151
			pfSenseHeader("system_crlmanager.php");
152
			exit;
153
		}
154
	}
155
}
156

    
157
if ($act == "delcert") {
158
	if (!is_array($thiscrl['cert'])) {
159
		pfSenseHeader("system_crlmanager.php");
160
		exit;
161
	}
162
	$found = false;
163
	foreach ($thiscrl['cert'] as $acert) {
164
		if ($acert['refid'] == $_GET['certref']) {
165
			$found = true;
166
			$thiscert = $acert;
167
		}
168
	}
169
	if (!$found) {
170
		pfSenseHeader("system_crlmanager.php");
171
		exit;
172
	}
173
	$name = $thiscert['descr'];
174
	if (cert_unrevoke($thiscert, $thiscrl)) {
175
		$savemsg = sprintf(gettext("Deleted Certificate %s from CRL %s"), $name, $thiscrl['descr']) . "<br/>";
176
		openvpn_refresh_crls();
177
		write_config(sprintf(gettext("Deleted Certificate %s from CRL %s"), $name, $thiscrl['descr']));
178
	} else {
179
		$savemsg = sprintf(gettext("Failed to delete Certificate %s from CRL %s"), $name, $thiscrl['descr']) . "<br/>";
180
	}
181
	$act="edit";
182
}
183

    
184
if ($_POST) {
185

    
186
	unset($input_errors);
187
	$pconfig = $_POST;
188

    
189
	/* input validation */
190
	if ($pconfig['method'] == "existing") {
191
		$reqdfields = explode(" ", "descr crltext");
192
		$reqdfieldsn = array(
193
				gettext("Descriptive name"),
194
				gettext("Certificate Revocation List data"));
195
	}
196
	if ($pconfig['method'] == "internal") {
197
		$reqdfields = explode(" ",
198
				"descr caref");
199
		$reqdfieldsn = array(
200
				gettext("Descriptive name"),
201
				gettext("Certificate Authority"));
202
	}
203

    
204
	do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
205

    
206
	/* if this is an AJAX caller then handle via JSON */
207
	if (isAjax() && is_array($input_errors)) {
208
		input_errors2Ajax($input_errors);
209
		exit;
210
	}
211

    
212
	/* save modifications */
213
	if (!$input_errors) {
214
		$result = false;
215

    
216
		if ($thiscrl) {
217
			$crl =& $thiscrl;
218
		} else {
219
			$crl = array();
220
			$crl['refid'] = uniqid();
221
		}
222

    
223
		$crl['descr'] = $pconfig['descr'];
224
		$crl['caref'] = $pconfig['caref'];
225
		$crl['method'] = $pconfig['method'];
226

    
227
		if ($pconfig['method'] == "existing") {
228
			$crl['text'] = base64_encode($pconfig['crltext']);
229
		}
230

    
231
		if ($pconfig['method'] == "internal") {
232
			$crl['serial'] = empty($pconfig['serial']) ? 9999 : $pconfig['serial'];
233
			$crl['lifetime'] = empty($pconfig['lifetime']) ? 9999 : $pconfig['lifetime'];
234
			$crl['cert'] = array();
235
		}
236

    
237
		if (!$thiscrl)
238
			$a_crl[] = $crl;
239

    
240
		write_config("Saved CRL {$crl['descr']}");
241

    
242
		pfSenseHeader("system_crlmanager.php");
243
	}
244
}
245

    
246
include("head.inc");
247
?>
248

    
249
<body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>">
250
<?php include("fbegin.inc"); ?>
251
<script type="text/javascript">
252
<!--
253

    
254
function method_change() {
255

    
256
	method = document.iform.method.value;
257

    
258
	switch (method) {
259
		case "internal":
260
			document.getElementById("existing").style.display="none";
261
			document.getElementById("internal").style.display="";
262
			break;
263
		case "existing":
264
			document.getElementById("existing").style.display="";
265
			document.getElementById("internal").style.display="none";
266
			break;
267
	}
268
}
269

    
270
//-->
271
</script>
272
<?php
273
	if ($input_errors)
274
		print_input_errors($input_errors);
275
	if ($savemsg)
276
		print_info_box($savemsg);
277
?>
278
<table width="100%" border="0" cellpadding="0" cellspacing="0">
279
	<tr>
280
		<td>
281
		<?php
282
			$tab_array = array();
283
			$tab_array[] = array(gettext("CAs"), false, "system_camanager.php");
284
			$tab_array[] = array(gettext("Certificates"), false, "system_certmanager.php");
285
			$tab_array[] = array(gettext("Certificate Revocation"), true, "system_crlmanager.php");
286
			display_top_tabs($tab_array);
287
		?>
288
		</td>
289
	</tr>
290
	<tr>
291
		<td id="mainarea">
292
			<div class="tabcont">
293

    
294
				<?php if ($act == "new" || $act == gettext("Save") || $input_errors): ?>
295

    
296
				<form action="system_crlmanager.php" method="post" name="iform" id="iform">
297
					<table width="100%" border="0" cellpadding="6" cellspacing="0">
298
						<?php if (!isset($id)): ?>
299
						<tr>
300
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Method");?></td>
301
							<td width="78%" class="vtable">
302
								<select name='method' id='method' class="formselect" onchange='method_change()'>
303
								<?php
304
									foreach($crl_methods as $method => $desc):
305
									if (($_GET['importonly'] == "yes") && ($method != "existing"))
306
										continue;
307
									$selected = "";
308
									if ($pconfig['method'] == $method)
309
										$selected = "selected";
310
								?>
311
									<option value="<?=$method;?>"<?=$selected;?>><?=$desc;?></option>
312
								<?php endforeach; ?>
313
								</select>
314
							</td>
315
						</tr>
316
						<?php endif; ?>
317
						<tr>
318
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Descriptive name");?></td>
319
							<td width="78%" class="vtable">
320
								<input name="descr" type="text" class="formfld unknown" id="descr" size="20" value="<?=htmlspecialchars($pconfig['descr']);?>"/>
321
							</td>
322
						</tr>
323
						<tr>
324
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate Authority");?></td>
325
							<td width="78%" class="vtable">
326
								<select name='caref' id='caref' class="formselect">
327
								<?php
328
									foreach($a_ca as $ca):
329
									$selected = "";
330
									if ($pconfig['caref'] == $ca['refid'])
331
										$selected = "selected";
332
								?>
333
									<option value="<?=$ca['refid'];?>"<?=$selected;?>><?=$ca['descr'];?></option>
334
								<?php endforeach; ?>
335
								</select>
336
							</td>
337
						</tr>
338
					</table>
339

    
340
					<table width="100%" border="0" cellpadding="6" cellspacing="0" id="existing">
341
						<tr>
342
							<td colspan="2" class="list" height="12"></td>
343
						</tr>
344
						<tr>
345
							<td colspan="2" valign="top" class="listtopic"><?=gettext("Existing Certificate Revocation List");?></td>
346
						</tr>
347

    
348
						<tr>
349
							<td width="22%" valign="top" class="vncellreq"><?=gettext("CRL data");?></td>
350
							<td width="78%" class="vtable">
351
								<textarea name="crltext" id="crltext" cols="65" rows="7" class="formfld_crl"><?=$pconfig['crltext'];?></textarea>
352
								<br>
353
								<?=gettext("Paste a Certificate Revocation List in X.509 CRL format here.");?></td>
354
							</td>
355
						</tr>
356
					</table>
357

    
358
					<table width="100%" border="0" cellpadding="6" cellspacing="0" id="internal">
359
						<tr>
360
							<td colspan="2" class="list" height="12"></td>
361
						</tr>
362
						<tr>
363
							<td colspan="2" valign="top" class="listtopic"><?=gettext("Internal Certificate Revocation List");?></td>
364
						</tr>
365
						<tr>
366
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Lifetime");?></td>
367
							<td width="78%" class="vtable">
368
								<input name="lifetime" type="text" class="formfld unknown" id="lifetime" size="5" value="<?=htmlspecialchars($pconfig['lifetime']);?>"/>
369
								<?=gettext("days");?><br/>
370
								<?=gettext("Default: 9999");?>
371
							</td>
372
						</tr>
373
						<tr>
374
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Serial");?></td>
375
							<td width="78%" class="vtable">
376
								<input name="lifetime" type="text" class="formfld unknown" id="lifetime" size="5" value="<?=htmlspecialchars($pconfig['serial']);?>"/>
377
								<br/>
378
								<?=gettext("Default: 0");?>
379
							</td>
380
						</tr>
381
					</table>
382

    
383
					<table width="100%" border="0" cellpadding="6" cellspacing="0">
384
						<tr>
385
							<td width="22%" valign="top">&nbsp;</td>
386
							<td width="78%">
387
								<input id="submit" name="save" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
388
								<?php if (isset($id) && $thiscrl): ?>
389
								<input name="id" type="hidden" value="<?=$id;?>" />
390
								<?php endif;?>
391
							</td>
392
						</tr>
393
					</table>
394
				</form>
395
				<?php elseif ($act == "edit"): ?>
396
				<?php 	$crl = $thiscrl; ?>
397
				<form action="system_crlmanager.php" method="post" name="iform" id="iform">
398
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
399
					<thead>
400
					<tr>
401
						<th width="90%" class="listhdrr" colspan="3"><b><?php echo gettext("Currently Revoked Certificates for CRL") . ': ' . $crl['descr']; ?></b></th>
402
						<th width="10%" class="list"></th>
403
					</tr>
404
					<tr>
405
						<th width="30%" class="listhdrr"><b><?php echo gettext("Certificate Name")?></b></th>
406
						<th width="30%" class="listhdrr"><b><?php echo gettext("Revocation Reason")?></b></th>
407
						<th width="30%" class="listhdrr"><b><?php echo gettext("Revoked At")?></b></th>
408
						<th width="10%" class="list"></th>
409
					</tr>
410
					</thead>
411
					<tbody>
412
				<?php /* List Certs on CRL */
413
					if (!is_array($crl['cert']) || (count($crl['cert']) == 0)): ?>
414
					<tr>
415
						<td class="listlr" colspan="3">
416
							&nbsp;&nbsp;&nbsp;&nbsp;<?php echo gettext("No Certificates Found for this CRL."); ?>
417
						</td>
418
						<td class="list">&nbsp;</td>
419
					</td>
420
				<?php	else:
421
					foreach($crl['cert'] as $i => $cert):
422
						$name = htmlspecialchars($cert['descr']);
423
				 ?>
424
					<tr>
425
						<td class="listlr">
426
							<?php echo $name; ?>
427
						</td>
428
						<td class="listlr">
429
							<?php echo $openssl_crl_status[$cert["reason"]]; ?>
430
						</td>
431
						<td class="listlr">
432
							<?php echo date("D M j G:i:s T Y", $cert["revoke_time"]); ?>
433
						</td>
434
						<td class="list">
435
							<a href="system_crlmanager.php?act=delcert&id=<?php echo $crl['refid']; ?>&certref=<?php echo $cert['refid']; ?>" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate from the CRL?");?>')">
436
								<img src="/themes/<?= $g['theme'];?>/images/icons/icon_x.gif" title="<?=gettext("Delete this certificate from the CRL ");?>" alt="<?=gettext("Delete this certificate from the CRL ");?>" width="17" height="17" border="0" />
437
							</a>
438
						</td>
439
					</tr>
440
					<?php
441
					endforeach;
442
					endif;
443
					?>
444
				<?php /* Drop-down with other certs from this CA. */
445
					// Map Certs to CAs in one pass
446
					$ca_certs = array();
447
					foreach($a_cert as $cert)
448
						if ($cert['caref'] == $crl['caref'])
449
							$ca_certs[] = $cert;
450
					if (count($ca_certs) == 0): ?>
451
					<tr>
452
						<td class="listlr" colspan="3">
453
							&nbsp;&nbsp;&nbsp;&nbsp;<?php echo gettext("No Certificates Found for this CA."); ?>
454
						</td>
455
						<td class="list">&nbsp;</td>
456
					</td>
457
				<?php	else: ?>
458
					<tr>
459
						<td class="listlr" colspan="3" align="center">
460
							<b><?php echo gettext("Choose a Certificate to Revoke"); ?></b>: <select name='certref' id='certref' class="formselect">
461
				<?php	foreach($ca_certs as $cert): ?>
462
							<option value="<?=$cert['refid'];?>"><?=htmlspecialchars($cert['descr'])?></option>
463
				<?php	endforeach; ?>
464
							</select>
465
							<b><?php echo gettext("Reason");?></b>:
466
							<select name='crlreason' id='crlreason' class="formselect">
467
				<?php	foreach($openssl_crl_status as $code => $reason): ?>
468
							<option value="<?= $code ?>"><?= htmlspecialchars($reason) ?></option>
469
				<?php	endforeach; ?>
470
							</select>
471
							<input name="act" type="hidden" value="addcert" />
472
							<input name="crlref" type="hidden" value="<?=$crl['refid'];?>" />
473
							<input name="id" type="hidden" value="<?=$crl['refid'];?>" />
474
							<input id="submit" name="add" type="submit" class="formbtn" value="<?=gettext("Add"); ?>" />
475
						</td>
476
						<td class="list">&nbsp;</td>
477
					</tr>
478
				<?php	endif; ?>
479
					</tbody>
480
				</table>
481
				</form>
482
				<?php else: ?>
483

    
484
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
485
					<thead>
486
					<tr>
487
						<td width="35%" class="listhdrr"><?=gettext("Name");?></td>
488
						<td width="10%" class="listhdrr"><?=gettext("Internal");?></td>
489
						<td width="35%" class="listhdrr"><?=gettext("Certificates");?></td>
490
						<td width="10%" class="listhdrr"><?=gettext("In Use");?></td>
491
						<td width="10%" class="list"></td>
492
					</tr>
493
					</thead>
494
					<tbody>
495
					<?php
496
						$caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png";
497
						// Map CRLs to CAs in one pass
498
						$ca_crl_map = array();
499
						foreach($a_crl as $crl)
500
							$ca_crl_map[$crl['caref']][] = $crl['refid'];
501

    
502
						$i = 0;
503
						foreach($a_ca as $ca):
504
							$name = htmlspecialchars($ca['descr']);
505

    
506
							if($ca['prv']) {
507
								$cainternal = "YES";
508
							} else 
509
								$cainternal = "NO";
510
					?>
511
					<tr>
512
						<td class="listlr" colspan="4">
513
							<table border="0" cellpadding="0" cellspacing="0">
514
								<tr>
515
									<td align="left" valign="center">
516
										<img src="<?=$caimg;?>" alt="CA" title="CA" border="0" height="16" width="16" />
517
									</td>
518
									<td align="left" valign="middle">
519
										<?=$name;?>
520
									</td>
521
								</tr>
522
							</table>
523
						</td>
524
						<td class="list">
525
						<?php if ($cainternal == "YES"): ?>
526
							<a href="system_crlmanager.php?act=new&caref=<?php echo $ca['refid']; ?>">
527
								<img src="/themes/<?= $g['theme'];?>/images/icons/icon_plus.gif" title="<?=gettext("Add or Import CRL for ") . $ca['descr'];?>" alt="<?=gettext("add crl");?>" width="17" height="17" border="0" />
528
							</a>
529
						<?php else: ?>
530
							<a href="system_crlmanager.php?act=new&caref=<?php echo $ca['refid']; ?>&importonly=yes">
531
								<img src="/themes/<?= $g['theme'];?>/images/icons/icon_plus.gif" title="<?=gettext("Import CRL for ") . $ca['descr'];?>" alt="<?=gettext("add crl");?>" width="17" height="17" border="0" />
532
							</a>
533
						<?php endif; ?>
534
						</td>
535
					</tr>
536
					
537
						<?php
538
						if (is_array($ca_crl_map[$ca['refid']])):
539
							foreach($ca_crl_map[$ca['refid']] as $crl):
540
								$tmpcrl = lookup_crl($crl);
541
								$internal = is_crl_internal($tmpcrl);
542
								$inuse = crl_in_use($tmpcrl['refid']);
543
						?>
544
					<tr>
545
						<td class="listlr"><?php echo $tmpcrl['descr']; ?></td>
546
						<td class="listr"><?php echo ($internal) ? "YES" : "NO"; ?></td>
547
						<td class="listr"><?php echo ($internal) ? count($tmpcrl['cert']) : "Unknown (imported)"; ?></td>
548
						<td class="listr"><?php echo ($inuse) ? "YES" : "NO"; ?></td>
549
						<td valign="middle" nowrap class="list">
550
							<?php if (!$internal || count($tmpcrl['cert'])): ?>
551
							<a href="system_crlmanager.php?act=exp&id=<?=$tmpcrl['refid'];?>")">
552
								<img src="/themes/<?= $g['theme'];?>/images/icons/icon_down.gif" title="<?=gettext("Export CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" alt="<?=gettext("Export CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" width="17" height="17" border="0" />
553
							</a>
554
							<?php endif; ?>
555
							<?php if ($internal): ?>
556
							<a href="system_crlmanager.php?act=edit&id=<?=$tmpcrl['refid'];?>")">
557
								<img src="/themes/<?= $g['theme'];?>/images/icons/icon_e.gif" title="<?=gettext("Edit CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" alt="<?=gettext("Edit CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" width="17" height="17" border="0" />
558
							</a>
559
							<?php endif; ?>
560
							<?php if (!$inuse): ?>
561
							<a href="system_crlmanager.php?act=del&id=<?=$tmpcrl['refid'];?>" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate Revocation List?") . ' (' . htmlspecialchars($tmpcrl['descr']) . ')';?>')">
562
								<img src="/themes/<?= $g['theme'];?>/images/icons/icon_x.gif" title="<?=gettext("Delete CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" alt="<?=gettext("Delete CRL") . " " . htmlspecialchars($tmpcrl['descr']); ?>" width="17" height="17" border="0" />
563
							</a>
564
							<?php endif; ?>
565
						</td>
566
					</tr>
567
						<?php
568
								$i++;
569
							endforeach;
570
						endif;
571
						?>
572
					<tr><td colspan="5">&nbsp;</td></tr>
573
					<?php
574
							$i++;
575
						endforeach;
576
					?>
577
					</tbody>
578
					<tfoot>
579
					<tr>
580
						<td colspan="5">
581
							<p>
582
								<?=gettext("Additional Certificate Revocation Lists can be added here.");?>
583
							</p>
584
						</td>
585
					</tr>
586
					</tfoot>
587
				</table>
588

    
589
				<?php endif; ?>
590

    
591
			</div>
592
		</td>
593
	</tr>
594
</table>
595
<?php include("fend.inc");?>
596
<script type="text/javascript">
597
<!--
598

    
599
method_change();
600

    
601
//-->
602
</script>
603

    
604
</body>
(186-186/226)