diff options
author | jim-p <jimp@pfsense.org> | 2010-10-21 14:33:20 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-10-21 14:33:20 -0400 |
commit | 8e022a760ad6dfee1fa020c4b10d9b895ef46673 (patch) | |
tree | 2070293aa2541f3da3bee8fbc86334c1007e50d3 /usr | |
parent | ad08687b5575aade26bb6ee4f6e01d3305e3bcc1 (diff) | |
download | pfsense-8e022a760ad6dfee1fa020c4b10d9b895ef46673.zip pfsense-8e022a760ad6dfee1fa020c4b10d9b895ef46673.tar.gz |
Refresh OpenVPN CRL files when a CRL has a cert added/removed. Ticket #555
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/system_crlmanager.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/system_crlmanager.php b/usr/local/www/system_crlmanager.php index 10b80c4..f03b72d 100644 --- a/usr/local/www/system_crlmanager.php +++ b/usr/local/www/system_crlmanager.php @@ -145,13 +145,14 @@ if ($act == "addcert") { if (!$input_errors) { cert_revoke($cert, $crl, OCSP_REVOKED_STATUS_UNSPECIFIED); write_config("Revoked cert {$cert['descr']} in CRL {$crl['descr']}."); + require_once('openvpn.inc'); + openvpn_refresh_crls(); pfSenseHeader("system_crlmanager.php"); exit; } } } -// Not Finished Yet! if ($act == "delcert") { $crl =& lookup_crl($_GET['crlref']); if (!$crl['cert'][$id]) { @@ -162,6 +163,8 @@ if ($act == "delcert") { cert_unrevoke($crl['cert'][$id], $crl); write_config("Deleted Cert {$name} from CRL {$crl['descr']}."); $savemsg = sprintf(gettext("Deleted Certificate %s from CRL %s"), $name, $crl['descr']) . "<br/>"; + require_once('openvpn.inc'); + openvpn_refresh_crls(); pfSenseHeader("system_crlmanager.php"); exit; } |