mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
openvpn: Fix verify script.
Former versions of openvpn called the script where the arguments in the certificate's common name where separated by /. Now, those are separated by ", " (comma, space).
This commit is contained in:
@@ -30,8 +30,8 @@ my $CN = $ARGV[1];
|
||||
exit 0 unless ($DEPTH eq "0");
|
||||
|
||||
# Strip the CN from the X509 identifier.
|
||||
$CN =~ /\/CN=(.*)$/i;
|
||||
$CN = $1;
|
||||
$CN =~ /(\/|,\ )CN=(.*)$/i;
|
||||
$CN = $2;
|
||||
|
||||
my %confighash = ();
|
||||
if (-f "${General::swroot}/ovpn/ovpnconfig"){
|
||||
|
||||
Reference in New Issue
Block a user