Advertisement

配置 OpenWrt 后台管理为 https/HTTPS 并使用 Open_SSL 加密

阅读量:

OpenWrt 通常采用http协议连接至后台管理系统;这种连接方式存在安全隐患;建议升级为采用https协议的版本;本文将详细阐述配置流程

1、卸载旧的ssl软件包

复制代码
    root@OpenWrt:~# opkg remove luci-ssl px5g px5g-mbedtls

必须删除与 px5g 相关的软件包;如果不进行删除操作,则会依靠 px5g 脚本来生成证书。

2、安装软件包

安装OpenSSL版的luci-ssl

复制代码
    root@OpenWrt:~# opkg update
    root@OpenWrt:~# opkg install luci-ssl-openssl libuhttpd-openssl

3、安装OpenSSL

复制代码
    root@OpenWrt:~# opkg install --force-reinstall libustream-openssl openssl-util

当遇到openssl命令无法正常运行时,在安装过程中添加此参数以强制重新安装IPK,并查看以下可能出现的错误信息

At root@OpenWrt, the command openssl genrsa -des3 -out root.key 2048

全部评论 (0)

还没有任何评论哟~