订阅

UiPath Installation and Upgrade

UiPath 安装和升级指南

加密 AppSettings.Production.json

概述


身份服务器和 Webhooks AppSettings.Production.json 文件包含用户可能需要保护的敏感信息。可以使用 UiPath.ConfigProtector.exe 工具来加密/解密这些文件。

📘

重要

一经加密,将无法通过直接编辑 AppSettings.Production.json 文件来更改数据。必须先解密,然后重新加密。

UiPath.ConfigProtector.exe


UiPath.ConfigProtector.exe 位于Orchestrator 的安装目录中。其完整路径为:C:\Program Files (x86)\UiPath\Orchestrator\Tools\ConfigProtector

命令参考

ParameterDescription
--peEncrypts the AppSettings.Production.json file.
--deDecrypts the AppSettings.Production.json file.
-f / --configfileIndicates the file name and path of AppSettings.Production.json.
-o / --outputThe encrypted/decrypted file is saved to a new file instead of overwriting the existing one.
--helpDisplays information about the available commands.
--versionDisplays version information.

身份服务器

加密方式

要加密 AppSettings.Production.json,请在安装 Orchestrator 后执行以下步骤:

  1. 打开命令提示符。
  2. 运行以下命令:
UiPath.ConfigProtector.exe 
--pe 
-f "C:\Program Files (x86)\UiPath\Orchestrator\Identity\appsettings.Production.json"

解密方式

  1. 打开命令提示符。
  2. 运行以下命令:
UiPath.ConfigProtector.exe 
--de 
-f "C:\Program Files (x86)\UiPath\Orchestrator\Identity\appsettings.Production.json"

Webhooks

在对 Webhook 的appsettings.Production.json 进行加密之前,您需要添加签名证书设置。如果要使用同一证书,则可以从身份服务器的 appsettings.Production.json 文件中复制 SigningCredentialSettings 部分。

"AppSettings": {
    "SigningCredentialSettings": {
        "StoreLocation": {
            "Name": "66B6B5A95BD055C8A264E643F9F8B26C7BEAA841",
            "Location": "LocalMachine",
            "NameType": "Thumbprint"
        }
    }
}
  • Name 代表证书的指纹。
  • 我们不建议为 LocationNameType 使用其他值。

加密方式

  1. 打开命令提示符。
  2. 运行以下命令:
UiPath.ConfigProtector.exe 
--pe 
-f "C:\Program Files (x86)\UiPath\Orchestrator\Webhooks\appsettings.Production.json"

解密方式

  1. 打开命令提示符。
  2. 运行以下命令:
UiPath.ConfigProtector.exe 
--de 
-f "C:\Program Files (x86)\UiPath\Orchestrator\Webhooks\appsettings.Production.json"

大约一年前更新


加密 AppSettings.Production.json


建议的编辑仅限用于 API 参考页面

您只能建议对 Markdown 正文内容进行编辑,而不能建议对 API 规范进行编辑。