手動配置授權設定

AppScan® Source 大部分的授權是由授權管理程式所處理。透過「授權管理程式」,您可以使用雲端或本端授權伺服器,或 Proxy 伺服器來配置授權。您可以直接編輯 license.ozsettings 配置檔,或執行含有參數的 licensemanager.bat Script 來手動配置授權設定。

編輯 license.ozsettings 配置檔

授權配置檔 license.ozsettings 會指定內容,以決定如何針對 HCL® AppScan® Source 管理授權。license.ozsettings 檔案位於 <data_dir>\config(其中 <data_dir>AppScan® Source 程式資料的位置,如所述 安裝和使用者資料檔位置。您可以使用指令行來編輯檔案。

在極少數的情況下,如果您必須直接編輯 license.ozsettings 檔案,檔案會使用下列內容來導向授權:
內容 預設值 說明
use_node_lock_license false 指定是否配置了節點鎖定授權:
  • true:已配置
  • false:未配置
license_server_url n/a 授權伺服器 URL
license_borrow_interval 24 AppScan® Source 保留授權的非作用中間隔(以小時為單位)。最小值是 24 小時,最大值是 168 小時。當授權在指定的時數內處於非作用中狀態時,授權會回到授權伺服器,供產品的另一個執行個體使用。
use_local_ssl_cert true 在鑑別本端授權伺服器的憑證時:
  • true:使用本端憑證進行鑑別,下載至配置資料夾中
  • false:如果透過 Windows 憑證管理程式匯入,則使用憑證
在編輯 license.ozsettings 檔案之後,您必須重新啟動「授權管理程式」。
註: 請小心確定任何參數值中都沒有多餘的空格。

執行 licensemanager.bat Script

在指令行使用 licensemanager.bat

配置 Proxy 伺服器詳細資料,以連線存取授權伺服器。這必須先配置:
licensemgr.bat -configure -proxy -host <proxyHost> -port <proxyPort> [-user <username> -password <password>]
  • -host:指定 Proxy 伺服器主機名稱。

  • -port:指定 Proxy 伺服器通訊埠。

  • -user:選用。指定要連線至 Proxy 伺服器的使用者名稱。

  • -password:選用。指定要連線至 Proxy 伺服器的密碼。

若要使用授權資訊配置 AppScan® Source,請執行下列動作:
licensemgr.bat -configure -url <licenseServerUrl> [-acceptcert]
  • -url:指定授權伺服器 URL。

  • -acceptCert:選用。接受憑證以連線至授權伺服器(若有提供憑證的話)。

匯入節點鎖定授權檔:
licensemgr.bat -importLicenseFile licensefile.license
  • -importLicenseFile:指定從後續具名檔案中匯入授權檔。
  • licensefile.license:要匯入的授權檔名稱。
若要檢視本端主機的指紋:
licensemgr.bat -getFingerPrint
  • -getFingerPrint:擷取本端主機的指紋。