diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-04-28 02:58:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-04-28 02:58:52 +0000 |
commit | bcc3e19b2c5d560e34db80cce84774f7add0ff1b (patch) | |
tree | fa207a95ba62cf36a1c241d411e05ed437a02c39 /etc | |
parent | b5971c4effeeef4a6c82de9774ac0574abb1e519 (diff) | |
download | pfsense-bcc3e19b2c5d560e34db80cce84774f7add0ff1b.zip pfsense-bcc3e19b2c5d560e34db80cce84774f7add0ff1b.tar.gz |
Use array name for .crt|.key
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/openvpn.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index b3554e3..70291e2 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -509,7 +509,7 @@ EOD; $openvpn_conf .= "route $ip $mask\n"; } - + $caname = $settings['cipherpki']; // Write the settings for the keys // Set the keys up @@ -519,8 +519,8 @@ EOD; $keys[] = array('field' => 'shared.key', 'ext' => 'secret', 'directive' => 'secret'); else { $keys[] = array('field' => 'ca.crt', 'directive' => 'ca'); - $keys[] = array('field' => "{$mode}.crt", 'directive' => 'cert'); - $keys[] = array('field' => "{$mode}.key", 'directive' => 'key'); + $keys[] = array('field' => "{$caname}.crt", 'directive' => 'cert'); + $keys[] = array('field' => "{$caname}.key", 'directive' => 'key'); if ($mode == 'server') $keys[] = array('field' => 'dh_params.dh', 'directive' => 'dh'); if ($settings['crl']) |