diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-04-27 22:44:36 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-04-27 22:44:36 +0000 |
commit | b1b914fef0f88ef2a4c653f55741c8129841b3c2 (patch) | |
tree | 0972efb382f1ed4d4e240f546edd3606f1490040 /usr/local/www | |
parent | 97d7d72075c81b00e2fd321689c9b3dd1720c2c3 (diff) | |
download | pfsense-b1b914fef0f88ef2a4c653f55741c8129841b3c2.zip pfsense-b1b914fef0f88ef2a4c653f55741c8129841b3c2.tar.gz |
Nuke shared key code, this is PKI only.
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/vpn_openvpn_certs_create.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/usr/local/www/vpn_openvpn_certs_create.php b/usr/local/www/vpn_openvpn_certs_create.php index 7a26f16..239b76d 100644 --- a/usr/local/www/vpn_openvpn_certs_create.php +++ b/usr/local/www/vpn_openvpn_certs_create.php @@ -140,19 +140,6 @@ if ($_POST) { if (!is_array($ovpnkeys[$caname])) $ovpnkeys[$caname] = array(); - if ($caname && $authmode == 'shared_key') { - execute_command_return_output("openvpn --genkey --secret $ovpncapath/$caname/shared.key"); - $ovpnkeys[$caname]['existing'] = "yes"; - $ovpnkeys[$caname]['shared.key'] = file_get_contents("$ovpncapath/$caname/shared.key"); - write_config(); - - header("Content-Type: application/octet-stream"); - header("Content-Disposition: attachment; filename=\"shared.key\";"); - header("Content-Transfer-Encoding: binary"); - header("Content-Length: ".filesize($filename)); - readfile("$ovpncapath/$caname/shared.key"); - } - } include("head.inc"); |