summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-11-20 15:15:10 +0000
committerErmal <eri@pfsense.org>2012-11-20 15:15:10 +0000
commit05e825e75be83f80833860882efd26e91b2c8cb6 (patch)
treeee93fa2887b4a8374072da2a485bc44ffb3f95a6 /etc/inc/vpn.inc
parente90950e164290bee7fa3dd06bf939340ec8ab5e5 (diff)
downloadpfsense-05e825e75be83f80833860882efd26e91b2c8cb6.zip
pfsense-05e825e75be83f80833860882efd26e91b2c8cb6.tar.gz
Correct path even for generated certs for ipsec
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 634e36c..80a18e2 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -548,7 +548,7 @@ function vpn_ipsec_configure($ipchg = false)
}
$certfile = "cert-".$ikeid.".crt";
- $certpath = $g['varetc_path']."/".$certfile;
+ $certpath = "{$g['varetc_path']}/ipsec/{$certfile}";
if (!file_put_contents($certpath, base64_decode($cert['crt'])))
{
@@ -559,7 +559,7 @@ function vpn_ipsec_configure($ipchg = false)
chmod($certpath, 0600);
$keyfile = "cert-".$ikeid.".key";
- $keypath = $g['varetc_path']."/".$keyfile;
+ $keypath = "{$g['varetc_path']}/ipsec/{$keyfile}";
if (!file_put_contents($keypath, base64_decode($cert['prv'])))
{
@@ -572,7 +572,7 @@ function vpn_ipsec_configure($ipchg = false)
$ca = lookup_ca($ph1ent['caref']);
if ($ca) {
$cafile = "ca-".$ikeid.".crt";
- $capath = $g['varetc_path']."/".$cafile;
+ $capath = "{$g['varetc_path']}/ipsec/{$cafile}";
if (!file_put_contents($capath, base64_decode($ca['crt'])))
{
OpenPOWER on IntegriCloud