]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ovpnmain.cgi: Update the certificate revocation list when a connection has been deleted.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Apr 2015 10:51:44 +0000 (12:51 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Apr 2015 10:51:44 +0000 (12:51 +0200)
Reference #10554.

html/cgi-bin/ovpnmain.cgi

index 6bf7b2bfd520f5abfd0a90c1ef31e38fd9a199c0..fb52e680162b3429769e8e441519dcbe55c44874 100644 (file)
@@ -2346,7 +2346,9 @@ else
        &General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
 
        if ($confighash{$cgiparams{'KEY'}}) {
+               # Revoke certificate if certificate was deleted and rewrite the CRL
                my $temp = `/usr/bin/openssl ca -revoke ${General::swroot}/ovpn/certs/$confighash{$cgiparams{'KEY'}}[1]cert.pem -config ${General::swroot}/ovpn/openssl/ovpn.cnf`;
+               my $tempA = `/usr/bin/openssl ca -gencrl -out ${General::swroot}/ovpn/crls/cacrl.pem -config ${General::swroot}/ovpn/openssl/ovpn.cnf`;
 
 ###
 # m.a.d net2net