【问题标题】:How to implement authentication (user/password) to swupdate Web Interface如何对 swupdate Web 界面实施身份验证(用户/密码)
【发布时间】:2020-12-30 08:43:57
【问题描述】:

我需要一种方法来对 swupdate Web 界面实施某种身份验证(用户/密码),以便仅允许授权用户更新固件。 我试图将一个 .htaccess 文件放在 web 界面的根文件夹中(即 /www 目录中),但它似乎被忽略了。 有人有关于我的要求的工作示例吗?

还有:在配置文件 swupdate.cfg 中我找到了以下参数:

全局授权文件

对于嵌入式网络服务器,但我没有找到该文件必须包含的内容(以及格式)。

提前致谢

【问题讨论】:

    标签: swupdate


    【解决方案1】:

    使用 apache 的 htdigest 工具创建 htdigest 文件。例如:htdigest -c .htdigest myrealm someuser 然后运行 ​​swupdate 添加以下 mongoose 参数--auth-domain myrealm --global-auth-file /path_to_your_htdigest/.htdigest

    完整示例:/usr/bin/swupdate -v -H "my_hardware:1.0" -f /etc/swupdate.cfg -w "--auth-domain myrealm --global-auth-file /www/.htdigest" -p 'reboot'

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-07-13
      • 2018-06-30
      • 1970-01-01
      • 2018-06-02
      • 2012-04-09
      • 2020-11-04
      • 1970-01-01
      • 2018-03-26
      相关资源
      最近更新 更多