diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-03-05 22:53:23 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-03-05 22:53:23 +0000 |
commit | b87888067e7a4b659000ca1e3cf4415084343bab (patch) | |
tree | fba5774a3a14b15b8eed6bbbca2e24ddcbfe34e0 /usr | |
parent | 26b7e6856f6c17a74ffc0039a6d9abaeacb2e3f5 (diff) | |
download | pfsense-b87888067e7a4b659000ca1e3cf4415084343bab.zip pfsense-b87888067e7a4b659000ca1e3cf4415084343bab.tar.gz |
Save file name as key to array so we do not have much work when rebuilding back.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/vpn_openvpn_certs_create.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/vpn_openvpn_certs_create.php b/usr/local/www/vpn_openvpn_certs_create.php index 082b5a3..e1cb298 100644 --- a/usr/local/www/vpn_openvpn_certs_create.php +++ b/usr/local/www/vpn_openvpn_certs_create.php @@ -183,12 +183,12 @@ if ($_POST) { $ovpnkeys =& $config['openvpn']['keys']; if (!is_array($ovpnkeys[$caname])) $ovpnkeys[$caname] = array(); - $ovpnkeys[$caname]['cakey'] = file_get_contents("$ovpncapath/$caname/ca.key"); - $ovpnkeys[$caname]['cacert'] = file_get_contents("$ovpncapath/$caname/ca.crt"); - $ovpnkeys[$caname]['sharedkey'] = file_get_contents("$ovpncapath/$caname/shared.key"); - $ovpnkeys[$caname]['serverkey'] = file_get_contents("$ovpncapath/$caname/server.key"); - $ovpnkeys[$caname]['servercert'] = file_get_contents("$ovpncapath/$caname/server.crt"); - $ovpnkeys[$caname]['dh'] = file_get_contents("$ovpncapath/$caname/dh_params.dh"); + $ovpnkeys[$caname]['ca.key'] = file_get_contents("$ovpncapath/$caname/ca.key"); + $ovpnkeys[$caname]['ca.crt'] = file_get_contents("$ovpncapath/$caname/ca.crt"); + $ovpnkeys[$caname]['shared.key'] = file_get_contents("$ovpncapath/$caname/shared.key"); + $ovpnkeys[$caname]['server.key'] = file_get_contents("$ovpncapath/$caname/server.key"); + $ovpnkeys[$caname]['server.crt'] = file_get_contents("$ovpncapath/$caname/server.crt"); + $ovpnkeys[$caname]['dh_params.dh'] = file_get_contents("$ovpncapath/$caname/dh_params.dh"); write_config(); } else { ?> <tr> |