Revision ccbc4bf7
Added by Scott Ullrich over 17 years ago
etc/inc/openvpn.inc | ||
---|---|---|
312 | 312 |
fwrite($fd, "$easyrsapath/pkitool --batch --server server \n"); |
313 | 313 |
fwrite($fd, "openssl dhparam -out $ovpncapath/$caname/dh_params.dh $cakeysize \n"); |
314 | 314 |
fclose($fd); |
315 |
system("/bin/chmod a+rx $ovpncapath/RUNME_2ND"); |
|
315 | 316 |
mwexec("/bin/tcsh $ovpncapath/RUNME_2ND"); |
316 | 317 |
$config['installedpackages']["openvpn$mode"]['config'][$id]['server.key'] = file_get_contents("$ovpncapath/$caname/server.key"); |
317 | 318 |
$config['installedpackages']["openvpn$mode"]['config'][$id]['server.crt'] = file_get_contents("$ovpncapath/$caname/server.crt"); |
Also available in: Unified diff
Make script executable.