SIP电话配置文件加密介绍

介绍

概述

由于批量部署具备较高便利性,越来越多客户使用这种方式部署 IP 电话。然而,在批量部署过程中,配置文件不可避免地会通过网络传输。配置文件中包含大量敏感信息,例如 SIP 账号和密码、电话管理员密码、网络电话簿账号凭证等。

为了防止信息泄露,我们可以使用加密工具对配置文件进行加密。本文档主要包含以下两个部分:

  1. 如何加密配置文件

  2. 如何在批量部署中使用加密配置文件

适用型号

本文档适用于我司所有系列 IP 电话。

如何加密配置文件

在 Windows 上加密配置文件

我们可以使用 DSC 工具通过 AES256 对配置文件进行加密。工具可从以下地址下载:http://download.fanvil.com/tool/AES%20tool/encryption.7z。以下示例说明如何加密配置文件:

  1. 下载 DSC 工具后,将其解压并把文件夹放置在 F 盘。

  2. DSC 工具下载配置文件
  3. 打开 key.txt,使用默认的 64 位密钥,或输入新的随机 64 位密钥,然后保存文件。

  4. 从电话的 Web 界面下载配置文件,修改必要信息,将文件重命名为 config.txt,并放入 F 盘的 encryption 目录中。

  5. 从电话 Web 界面下载配置文件
  6. 按下 Win + R,输入 cmd 打开 DOS 命令提示符,然后使用下图所示命令进入 encryption 目录。

  7. CMD 执行 DOS 命令
  8. 使用以下命令进行加密或解密:

    加密命令:
           dsc.exe key.txt e config.txt encrypted.txt
           - dsc.exe:工具执行文件
           - key.txt:密钥文件
           - e:加密标识
           - config.txt:源配置文件
           - encrypted.txt:输出的加密文件,可自定义名称

    解密命令:
           dsc.exe key.txt d encrypted.txt original.txt
           - d:解密标识
           - encrypted.txt:加密源文件
           - original.txt:输出的解密文件,可自定义名称

  9. 解密前后文件显示界面

在 Linux 上加密配置文件

  1. 从此链接下载源代码:https://1drv.ms/u/s!AhLXW_VNOC9LgR6TiW5931ydvEP5

  2. 在 Linux 上解压下载的包,进入目录,并运行编译命令以生成 DSC 工具:    
    gcc dsc.c rijndael-alg-fst.c rijndael-api-fst.c -o dsc

  3. 下载配置文件并解密
  4. 执行后,Linux 中将生成 dsc 工具,如下图所示。

  5. Linux 中生成的 DSC 工具
  6. 将需要加密或解密的文件放置在与 DSC 工具相同的目录中。

  7. 将文件放入 DSC 目录
  8. 加密命令示例:
           dsc key.txt e config.txt encryption.enc
           - dsc:工具名称
           - key.txt:密钥文件
           - e:加密
           - config.txt:待加密文件
           - encryption.enc:加密输出文件

  9. 解密命令示例:
           dsc key.txt d encrypted.txt config_after.txt
           - d:解密
           - encrypted.txt:待解密文件
           - config_after.txt:解密输出文件

如何在批量部署中使用加密配置文件

若要使用加密配置文件部署电话,必须在电话的 Web 界面中配置加密密钥,如下图所示:

在电话 Web 界面配置加密密钥

最后,将第 2 节生成的加密配置文件放置到 provisioning 服务器上,并在 IP 电话上配置正确的服务器设置。详细信息请参考文档 Auto Provisioning Mechanism, Environment Setup, and Configuration File Guide

目录
客服 电话
We use cookie to improve your online experience. By continuing to browse this website, you agree to our use of cookie.

Cookies

This Cookie Policy explains how we use cookies and similar technologies when you access or use our website and related services. Please read this Policy together with our Terms and Conditions and Privacy Policy so that you understand how we collect, use, and protect information.

By continuing to access or use our Services, you acknowledge that cookies and similar technologies may be used as described in this Policy, subject to applicable law and your available choices.

Updates to This Cookie Policy

We may revise this Cookie Policy from time to time to reflect changes in legal requirements, technology, or our business practices. When we make updates, the revised version will be posted on this page and will become effective from the date of publication unless otherwise required by law.

Where required, we will provide additional notice or request your consent before applying material changes that affect your rights or choices.

What Are Cookies?

Cookies are small text files placed on your device when you visit a website or interact with certain online content. They help websites recognize your browser or device, remember your preferences, support essential functionality, and improve the overall user experience.

In this Cookie Policy, the term “cookies” also includes similar technologies such as pixels, tags, web beacons, and other tracking tools that perform comparable functions.

Why We Use Cookies

We use cookies to help our website function properly, remember user preferences, enhance website performance, understand how visitors interact with our pages, and support security, analytics, and marketing activities where permitted by law.

We use cookies to keep our website functional, secure, efficient, and more relevant to your browsing experience.

Categories of Cookies We Use

Strictly Necessary Cookies

These cookies are essential for the operation of the website and cannot be disabled in our systems where they are required to provide the service you request. They are typically set in response to actions such as setting privacy preferences, signing in, or submitting forms.

Without these cookies, certain parts of the website may not function correctly.

Functional Cookies

Functional cookies enable enhanced features and personalization, such as remembering your preferences, language settings, or previously selected options. These cookies may be set by us or by third-party providers whose services are integrated into our website.

If you disable these cookies, some services or features may not work as intended.

Performance and Analytics Cookies

These cookies help us understand how visitors use our website by collecting information such as traffic sources, page visits, navigation behavior, and general interaction patterns. In many cases, this information is aggregated and does not directly identify individual users.

We use this information to improve website performance, usability, and content relevance.

Targeting and Advertising Cookies

These cookies may be placed by our advertising or marketing partners to help deliver more relevant ads and measure the effectiveness of campaigns. They may use information about your browsing activity across different websites and services to build a profile of your interests.

These cookies generally do not store directly identifying personal information, but they may identify your browser or device.

First-Party and Third-Party Cookies

Some cookies are set directly by our website and are referred to as first-party cookies. Other cookies are set by third-party services, such as analytics providers, embedded content providers, or advertising partners, and are referred to as third-party cookies.

Third-party providers may use their own cookies in accordance with their own privacy and cookie policies.

Information Collected Through Cookies

Depending on the type of cookie used, the information collected may include browser type, device type, IP address, referring website, pages viewed, time spent on pages, clickstream behavior, and general usage patterns.

This information helps us maintain the website, improve performance, enhance security, and provide a better user experience.

Your Cookie Choices

You can control or disable cookies through your browser settings and, where available, through our cookie consent or preference management tools. Depending on your location, you may also have the right to accept or reject certain categories of cookies, especially those used for analytics, personalization, or advertising purposes.

Please note that blocking or deleting certain cookies may affect the availability, functionality, or performance of some parts of the website.

Restricting cookies may limit certain features and reduce the quality of your experience on the website.

Cookies in Mobile Applications

Where our mobile applications use cookie-like technologies, they are generally limited to those required for core functionality, security, and service delivery. Disabling these essential technologies may affect the normal operation of the application.

We do not use essential mobile application cookies to store unnecessary personal information.

How to Manage Cookies

Most web browsers allow you to manage cookies through browser settings. You can usually choose to block, delete, or receive alerts before cookies are stored. Because browser controls vary, please refer to your browser provider’s support documentation for details on how to manage cookie settings.

Contact Us

If you have any questions about this Cookie Policy or our use of cookies and similar technologies, please contact us at support@becke.cc .