1 |
unnilennium |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' phpki/phpki-0.82/setup.php-presetup mezzanine_patched_phpki/phpki-0.82/setup.php-presetup |
2 |
|
|
--- phpki/phpki-0.82/setup.php-presetup 2008-12-08 06:37:14.000000000 +0100 |
3 |
|
|
+++ mezzanine_patched_phpki/phpki-0.82/setup.php-presetup 2008-12-08 06:36:50.000000000 +0100 |
4 |
|
|
@@ -604,6 +604,17 @@ |
5 |
|
|
flush(); |
6 |
|
|
flush_exec($cmd,100); |
7 |
|
|
|
8 |
|
|
+ # |
9 |
|
|
+ # Create a TLS auth key for OpenVPN. |
10 |
|
|
+ # |
11 |
|
|
+ |
12 |
|
|
+ print '<p><strong>Creating a TLS authentication key used by OpenVPN.<br>'; |
13 |
|
|
+ print "Saving to $store_dir/takey.pem.</strong><br>"; |
14 |
|
|
+ $cmd = "openvpn --genkey --secret '$config[private_dir]/takey.pem'"; |
15 |
|
|
+ print $cmd.'<br>'; |
16 |
|
|
+ flush(); |
17 |
|
|
+ flush_exec($cmd); |
18 |
|
|
+ |
19 |
|
|
|
20 |
|
|
#print '<p><strong>Creating 2048 bit Diffie-Hellman parameters used by OpenVPN.<br>'; |
21 |
|
|
#print "Saving to $store_dir/dhparam2048.pem.</strong><br>"; |