ThingWorx Flow > 安裝與組態 > 安裝 ThingWorx Flow > 將 ThingWorx Flow 秘密金鑰儲存在 ThingWorx Foundation KeyStore 中
將 ThingWorx Flow 秘密金鑰儲存在 ThingWorx Foundation KeyStore 中
先決條件
從 PTC 支援網站下載「安全性管理工具」。如需瞭解具體用法及初始化 ThingWorx Foundation KeyStore,請參閱安全性管理工具
當將 ThingWorx Flow 安裝在與 ThingWorx Foundation 不同的電腦上時,ThingWorx Flow 安裝程式會在您複製 ThingWorx Foundation platform_settings.json 檔案的相同位置建立 Flowkeys.tar 檔案。Flowkeys.tar 檔案包含下列檔案:
config.json
keyfile-key
keys.enc
請記下 Flowkeys.tar 檔案的位置。
步驟
完成下列步驟,將 ThingWorx Flow 密碼匯入至 ThingWorx Foundation KeyStore:
1. Flowkeys.tar 檔案複製到可使用 ThingWorx Foundation KeyStore 的電腦。
2. Flowkeys.tar 檔案的內容解壓縮至該電腦中的任何目錄。
3. 修改 config.json 檔案,以使 location 指向 keys.enc 檔案,keyfile-key-location 指向 keyfile-key 檔案。
....
"location": "./keys.enc",
"keyfile-key-location": "./keyfile-key"
....
4. 完成下列指令,將 ThingWorx Flow 密碼匯入至 ThingWorx Foundation KeyStore:
security-common-cli <Path-to-ThingWorx-KeyStore-config> import <Full-path-to-ThingWorx-Flow-KeyStore-config.json-file>
例如:./security-common-cli keystore.conf import config.json
5. 如果您已依照輪換 ThingWorx Flow 加密金鑰中所述的方式輪換 ThingWorx Flow 加密金鑰,請執行下列指令以更新 ThingWorx Foundation KeyStore 中 custom_active_encryption_key 的值:
security-common-cli <Path-to-ThingWorx-KeyStore-config> set custom_active_encryption_key "<Rotated-ThingWorx-Flow-encryption-key>"
6. 如果 ThingWorx Foundation 已在執行中,請重新啟動 ThingWorx Foundation 以重新載入 KeyStore。
這是否有幫助?