From 53f33536c02b1a7ad1f94536b414295b3fd3f24e Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 8 Jun 2014 10:22:50 +0200 Subject: [PATCH] openconnect: include the Interface name in the files used for certificates and keys Signed-off-by: Nikos Mavrogiannopoulos --- net/openconnect/files/openconnect.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/openconnect/files/openconnect.sh b/net/openconnect/files/openconnect.sh index e14c0d091..2a4585718 100755 --- a/net/openconnect/files/openconnect.sh +++ b/net/openconnect/files/openconnect.sh @@ -38,9 +38,9 @@ proto_openconnect_setup() { cmdline="$server$port -i vpn-$config --non-inter --syslog --script /lib/netifd/vpnc-script" - [ -f /etc/openconnect/ca.pem ] && append cmdline "--cafile /etc/openconnect/ca.pem" - [ -f /etc/openconnect/user-cert.pem ] && append cmdline "-c /etc/openconnect/user-cert.pem" - [ -f /etc/openconnect/user-key.pem ] && append cmdline "--sslkey /etc/openconnect/user-key.pem" + [ -f /etc/openconnect/ca-vpn-$config.pem ] && append cmdline "--cafile /etc/openconnect/ca-vpn-$config.pem" + [ -f /etc/openconnect/user-cert-vpn-$config.pem ] && append cmdline "-c /etc/openconnect/user-cert-vpn-$config.pem" + [ -f /etc/openconnect/user-key-vpn-$config.pem ] && append cmdline "--sslkey /etc/openconnect/user-key-vpn-$config.pem" [ -n "$serverhash" ] && append cmdline "--servercert=$serverhash" [ -n "$authgroup" ] && append cmdline "--authgroup $authgroup" [ -n "$username" ] && append cmdline "-u $username"