openvpn: switcheroo for ns-cert-type / remote-cert-tls

PR: https://forum.opnsense.org/index.php?topic=6003.0
This commit is contained in:
Franco Fichtner 2017-09-21 22:14:36 +00:00
parent b605812b71
commit 73abc7c3d6

View File

@ -300,7 +300,7 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $verifys
if (is_array($server_cert) && ($server_cert['crt'])) {
$purpose = cert_get_purpose($server_cert['crt'], true);
if ($purpose['server'] == 'Yes') {
$conf .= "ns-cert-type server{$nl}";
$conf .= "remote-cert-tls server{$nl}";
}
}