tls-verify requires quotes around the command to be executed. Ticket #3596

This commit is contained in:
Chris Buechler 2014-04-11 19:33:42 -05:00
parent e8e283669a
commit db45bc6892

View File

@ -595,7 +595,7 @@ function openvpn_reconfigure($mode, $settings) {
$cert = lookup_cert($settings['certref']);
/* XXX: Seems not used at all! */
$servercn = urlencode(cert_get_cn($cert['crt']));
$conf .= "tls-verify /usr/local/sbin/ovpn_auth_verify tls '{$servercn}' {$settings['cert_depth']} via-env\n";
$conf .= "tls-verify \"/usr/local/sbin/ovpn_auth_verify tls '{$servercn}' {$settings['cert_depth']} via-env\"\n";
}
// The local port to listen on