diff options
author | Alexander Wilke <nachtfalkeaw@web.de> | 2011-12-21 22:37:06 +0000 |
---|---|---|
committer | Alexander Wilke <nachtfalkeaw@web.de> | 2011-12-21 22:37:06 +0000 |
commit | f78c766ee65ecee6623bf911ac1dccd0fcfc7697 (patch) | |
tree | 09bc6ec6624a0a4f8aedda4a9dbabace6d18f451 /config/freeradius2/freeradius_view_config.php | |
parent | 472dbadfbe0078a2935960e4ed125e9d06d4f198 (diff) | |
download | pfsense-packages-f78c766ee65ecee6623bf911ac1dccd0fcfc7697.tar.gz pfsense-packages-f78c766ee65ecee6623bf911ac1dccd0fcfc7697.tar.bz2 pfsense-packages-f78c766ee65ecee6623bf911ac1dccd0fcfc7697.zip |
Added GUI to create certificates for freeradius (CA, server, clients)
Diffstat (limited to 'config/freeradius2/freeradius_view_config.php')
-rw-r--r-- | config/freeradius2/freeradius_view_config.php | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/config/freeradius2/freeradius_view_config.php b/config/freeradius2/freeradius_view_config.php index 9db6a682..7a5c52a4 100644 --- a/config/freeradius2/freeradius_view_config.php +++ b/config/freeradius2/freeradius_view_config.php @@ -35,6 +35,10 @@ function get_file($file){ $files['clients']="/usr/local/etc/raddb/clients.conf"; $files['users']="/usr/local/etc/raddb/users"; $files['virtual-server-default']="/usr/local/etc/raddb/sites-enabled/default"; + $files['ca']="/usr/local/etc/raddb/certs/ca.cnf"; + $files['server']="/usr/local/etc/raddb/certs/server.cnf"; + $files['client']="/usr/local/etc/raddb/certs/client.cnf"; + $files['index']="/usr/local/etc/raddb/certs/index.txt"; if ($files[$file]!="" && file_exists($files[$file])){ @@ -78,6 +82,7 @@ else{ $tab_array[] = array(gettext("Settings"), false, "/pkg_edit.php?xml=freeradiussettings.xml&id=0"); $tab_array[] = array(gettext("EAP"), false, "/pkg_edit.php?xml=freeradiuseapconf.xml&id=0"); $tab_array[] = array(gettext("SQL"), false, "/pkg_edit.php?xml=freeradiussqlconf.xml&id=0"); + $tab_array[] = array(gettext("Certificates"), false, "/pkg_edit.php?xml=freeradiuscerts.xml&id=0"); $tab_array[] = array(gettext("View config"), true, "/freeradius_view_config.php"); display_top_tabs($tab_array); ?> @@ -97,7 +102,11 @@ else{ <input type="button" onClick="get_freeradius_file('sql');" id='btn_sql' value="sql.conf"> <input type="button" onClick="get_freeradius_file('clients');" id='btn_clients' value="clients.conf"> <input type="button" onClick="get_freeradius_file('users');" id='btn_users' value="users"> - <input type="button" onClick="get_freeradius_file('virtual-server-default');" id='btn_virtual-server-default' value="default"> + <input type="button" onClick="get_freeradius_file('virtual-server-default');" id='btn_virtual-server-default' value="virtual-server-default"> + <input type="button" onClick="get_freeradius_file('ca');" id='btn_ca' value="ca.cnf"> + <input type="button" onClick="get_freeradius_file('server');" id='btn_server' value="server.cnf"> + <input type="button" onClick="get_freeradius_file('client');" id='btn_client' value="client.cnf"> + <input type="button" onClick="get_freeradius_file('index');" id='btn_index' value="index.txt"> </td> </tr> <tr> @@ -132,7 +141,11 @@ else{ $('btn_sql').value="sql.conf"; $('btn_clients').value="clients.conf"; $('btn_users').value="users"; - $('btn_virtual').value="default"; + $('btn_virtual').value="virtual-server-default"; + $('btn_ca').value="ca.cnf"; + $('btn_server').value="server.cnf"; + $('btn_client').value="client.cnf"; + $('btn_index').value="index.txt"; scroll(0,0); } </script> |