概述
身份服务器和 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
。
命令参考
Parameter | Description |
---|---|
--pe | Encrypts the AppSettings.Production.json file. |
--de | Decrypts the AppSettings.Production.json file. |
-f / --configfile | Indicates the file name and path of AppSettings.Production.json . |
-o / --output | The encrypted/decrypted file is saved to a new file instead of overwriting the existing one. |
--help | Displays information about the available commands. |
--version | Displays version information. |
身份服务器
加密方式
要加密 AppSettings.Production.json
,请在安装 Orchestrator 后执行以下步骤:
- 打开命令提示符。
- 运行以下命令:
UiPath.ConfigProtector.exe
--pe
-f "C:\Program Files (x86)\UiPath\Orchestrator\Identity\appsettings.Production.json"
解密方式
- 打开命令提示符。
- 运行以下命令:
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
代表证书的指纹。- 我们不建议为
Location
和NameType
使用其他值。
加密方式
- 打开命令提示符。
- 运行以下命令:
UiPath.ConfigProtector.exe
--pe
-f "C:\Program Files (x86)\UiPath\Orchestrator\Webhooks\appsettings.Production.json"
解密方式
- 打开命令提示符。
- 运行以下命令:
UiPath.ConfigProtector.exe
--de
-f "C:\Program Files (x86)\UiPath\Orchestrator\Webhooks\appsettings.Production.json"
大约一年前更新