匯入 HTTPS 和 CA 憑證

安裝 Control Room 之後,使用 Windows 或 Linux 命令提示字元,為 HTTPS、憑證授權單位 (CA) 或兩者匯入憑證。

您可以在下列情況中匯入 HTTPS 和 CA 憑證:
  • 安裝 Automation 360之後,將 Control Room 從 HTTP 切換到 HTTPS 時。
  • 憑證會過期或需要修改,例如,當您新增伺服器時。

這些指示適用於 Windows 和 Linux 安裝。

程序

若要匯入 CA 或 HTTPS 憑證,以使用命令提示字元來設定 Control Room 進行安全連線,請執行以下步驟:

  1. 在管理員模式下運行命令提示符。
  2. 瀏覽至 Automation Anywhere 安裝路徑。
    Windows 的預設安裝路徑為 C:\Program Files\Automation Anywhere\Automation360
    Linux 的預設安裝路徑為 /opt/automationanywhere/enterprise
  3. 在命令提示字元中輸入或貼上下列項目:
    • 若為 Windows HTTPS 憑證,請輸入此命令:
      jdk11\bin\java -jar certmgr.jar -appDir "C:\Program Files\Automation Anywhere\Automation360" -setServerCert "C:\Users\cradmin\Desktop\test_automationanywhere_com.pfx" -privateKeyPass <PFX Password>
    • 若為 Linux CentOS HTTPS 憑證,請輸入此命令:
      jdk11/bin/java -jar certmgr.jar -appDir "/opt/automationanywhere/enterprise" -setServerCert "/home/<user>/test_automationanywhere_com.pfx" -privateKeyPass <PFX Password>
    • 若為 Windows CA 憑證,請輸入此命令:
      jdk11\bin\java -jar certmgr.jar -appDir "C:\Program Files\Automation Anywhere\Automation360" -importTrustCert "D:\<user name>\My Downloads\CA31.cer"
    • 若為 Linux CentOS CA 憑證,請輸入此命令:
      jdk11/bin/java -jar certmgr.jar -appDir 
                              "/opt/automationanywhere/enterprise" 
                              -importTrustCert "CA31.cer"
  4. 重新啟動 Control Room 反向代理服務查看導入的證書。
  5. 安裝期間,如果您不接受預設值,並表示您想要上傳自己的 (自我簽署) 憑證,請在 Automation Anywhere 安裝路徑中將下列參數新增至位於 config 資料夾中的 boot.db.properties 檔案。
    • Windows 檔案位置:

      根目錄:\Program Files\Automation Anywhere\config\boot.db.properties

    • Linux 檔案位置:

      /opt/automationanywhere/enterprise/config/boot.db.properties

    參數:

    trustServerCertificate=false