w_complete': // 重置密码 $pre .= $default_pre .= 'user_resetpw_complete.htm'; break; case 'user_comment': // 我的首页评论 $pre .= $default_pre .= 'user_comment.htm'; break; case 'single_page': // 单页 $pre .= $default_pre .= 'single_page.htm'; break; case 'search': // 搜索 $pre .= $default_pre .= 'search.htm'; break; case 'operate_sticky': // 置顶 $pre .= $default_pre .= 'operate_sticky.htm'; break; case 'operate_close': // 关闭 $pre .= $default_pre .= 'operate_close.htm'; break; case 'operate_delete': // 删除 $pre .= $default_pre .= 'operate_delete.htm'; break; case 'operate_move': // 移动 $pre .= $default_pre .= 'operate_move.htm'; break; case '404': $pre .= $default_pre .= '404.htm'; break; case 'read_404': $pre .= $default_pre .= 'read_404.htm'; break; case 'list_404': $pre .= $default_pre .= 'list_404.htm'; break; default: // 首页 $pre .= $default_pre .= theme_mode_pre(); break; } if ($config['theme']) { $conffile = APP_PATH . 'view/template/' . $config['theme'] . '/conf.json'; $json = is_file($conffile) ? xn_json_decode(file_get_contents($conffile)) : array(); } // 加载绑定ID安装风格 !empty($json['installed']) and $path_file = APP_PATH . 'view/template/' . $config['theme'] . '/htm/' . ($id ? $id . '_' : '') . $pre; // 加载安装风格 (empty($path_file) || !is_file($path_file)) and $path_file = APP_PATH . 'view/template/' . $config['theme'] . '/htm/' . $pre; // 主风格下可安装多个子风格 if (!empty($config['theme_child']) && is_array($config['theme_child'])) { foreach ($config['theme_child'] as $theme) { if (empty($theme) || is_array($theme)) continue; // 加载绑定ID安装风格 $path_file = APP_PATH . 'view/template/' . $theme . '/htm/' . ($id ? $id . '_' : '') . $pre; // 加载安装风格 !is_file($path_file) and $path_file = APP_PATH . 'view/template/' . $theme . '/htm/' . $pre; } } // 风格不存在加载适配端 !is_file($path_file) and $path_file = APP_PATH . ($dir ? 'plugin/' . $dir . '/view/htm/' : 'view/htm/') . $default_pre; return $path_file; } // 依据模式返回适配文件 function theme_mode_pre($type = 0) { global $config; // 网站模式 $mode = $config['setting']['website_mode']; $pre = ''; // 首页文件前缀 if (1 == $mode) { // 门户模式 $pre .= 2 == $type ? 'portal_category.htm' : 'portal.htm'; } elseif (2 == $mode) { // 扁平模式 $pre .= 2 == $type ? 'flat_category.htm' : 'flat.htm'; } else { // 自定义模式 $pre .= 2 == $type ? 'index_category.htm' : 'index.htm'; } return $pre; } ?>WIFI用户EAP-TLS认证|江阴雨辰互联

WIFI用户EAP-TLS认证

WIFI用户EAP-TLS认证


2024年5月17日发(作者:灵音播放器app下载)

FortiGate结合Openssl + freeradius

实现多级CA环境下的无线用户EAP-TLS认证

一、 EAP-TLS简介

简而言之,使用数字证书来保护radius认证,与802.1x结合,可以用数字证书认

证无线上网用户,是最安全的无线认证方法之一。

参考:/wiki/EAP#EAP-TLS

二、 实验环境

如上图所示,使用两台ubuntu linux服务器,Ubuntu-1作为rootca和radius服务

器;Ubuntu-2作为subca。

FortiOS:v4.3.6。

------------------------------------------------------------------------------------------------------------------------------------------------------

北京市海淀区北四环西路52号方正国际大厦12层 电话:

1

三、 安装openssl及freeradius

sudo apt-get install openssl

sudo apt-get install freeradius

四、 openssl环境准备

1. 在ubuntu1和ubuntu2的当前用户文件夹(例如/home/jeff/)下创建openssl工作

数据存放文件夹,例如/home/jeff/certs/。

2. 将附件的设置文件存放在/home/jeff/certs/目录下。注意修改一下配

置文件中的dir路径。

3. 注意事项:Radius服务器端证书的extendedKeyUsage属性必须包含服务器身份

认证(1.3.6.1.5.5.7.3.1);移动设备证书的extendedKeyUsage属性必须包含客

户端身份验证 (1.3.6.1.5.5.7.3.2)。中已经包括相关设置。

五、 在Ubuntu-1上建立根CA(密码:1234)

4. 生成根CA私钥(需要指定Common Name)

cd /home/jeff/certs

openssl req -newkey rsa:1024 -sha1 -config ./ -keyout

-out -days 3650

5. 生成证书,并用私钥签名

openssl x509 -req -in -sha1 -extfile ./ -extensions v3_ca

-signkey -out -days 3650

6. 组合证书与私钥,形成CA根证书

cat >

7. 显示根证书

openssl x509 -text -noout -in

------------------------------------------------------------------------------------------------------------------------------------------------------

北京市海淀区北四环西路52号方正国际大厦12层 电话:

2


发布者:admin,转转请注明出处:http://www.yc00.com/xitong/1715917700a2691661.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信