1 |
vip-ire |
1.1 |
diff -Nur smeserver-openvpn-s2s-0.1/root/etc/e-smith/templates/etc/openvpn/s2s/openvpn-s2s.conf/30key smeserver-openvpn-s2s-0.1_tls_remote/root/etc/e-smith/templates/etc/openvpn/s2s/openvpn-s2s.conf/30key |
2 |
|
|
--- smeserver-openvpn-s2s-0.1/root/etc/e-smith/templates/etc/openvpn/s2s/openvpn-s2s.conf/30key 2013-11-14 18:39:44.936820765 +0100 |
3 |
|
|
+++ smeserver-openvpn-s2s-0.1_tls_remote/root/etc/e-smith/templates/etc/openvpn/s2s/openvpn-s2s.conf/30key 2013-11-14 18:41:27.022748017 +0100 |
4 |
|
|
@@ -22,7 +22,7 @@ |
5 |
|
|
if ( -e "/etc/openvpn/s2s/pub/$key".'_cacrl.pem' ) && |
6 |
|
|
( ! -z "/etc/openvpn/s2s/pub/$key".'_cacrl.pem' ); |
7 |
|
|
$OUT .= "ns-cert-type client\n" if ($checkcrt eq 'enabled'); |
8 |
|
|
- $OUT .= "tls-remote $tlsremote\n" if ($tlsremote ne ''); |
9 |
|
|
+ $OUT .= "verify-x509-name $tlsremote name\n" if ($tlsremote ne ''); |
10 |
|
|
} |
11 |
|
|
else{ |
12 |
|
|
$OUT .= "tls-client\n"; |
13 |
|
|
@@ -36,7 +36,7 @@ |
14 |
|
|
if ( -e "/etc/openvpn/s2s/pub/$key".'_cacrl.pem' ) && |
15 |
|
|
( ! -z "/etc/openvpn/s2s/pub/$key".'_cacrl.pem' ); |
16 |
|
|
$OUT .= "ns-cert-type server\n" if ($checkcrt eq 'enabled'); |
17 |
|
|
- $OUT .= "tls-remote $tlsremote\n" if ($tlsremote ne ''); |
18 |
|
|
+ $OUT .= "verify-x509-name $tlsremote name\n" if ($tlsremote ne ''); |
19 |
|
|
} |
20 |
|
|
} |
21 |
|
|
|