summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/vpn_openvpn_certs_create.php13
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");
OpenPOWER on IntegriCloud