[16.0.0.3 以及更新版本]

針對 Liberty 執行時期環境配置 customPasswordEncryption 提供者

啟用 customPasswordEncryption 提供者,以便將機密字串解密。

開始之前

取得含有 customPasswordEncryption 提供者的「企業系統架構 (ESA)」檔案。如開發 customPasswordEncryption 提供者中所述,ESA 檔案會實作 com.ibm.wsspi.security.crypto.CustomPasswordEncryption 介面。如果您並無包含 customPasswordEncryption 提供者的 ESA 檔案,請取得 Java™ 保存檔 (JAR) 以及含有安裝指示的一或多個資訊清單檔。如果您想在 WebSphere® Developer Tools 中使用 customPasswordEncryption 提供者,請確定 customPasswordEncryption 提供者已針對開發人員工具啟用 ESA 檔案。

關於這項作業

啟用 customPasswordEncryption 提供者,以使用 customPasswordEncryption 提供者來將字串解密。customPasswordEncryption 提供者會將 server.xml 檔中的字串加密。

程序

  1. 使用 installUtility 指令,來安裝 ESA 檔案。

    如果 customPasswordEncryption 提供者的包裝方式有別於 ESA 檔案,請遵循 customPasswordEncryption 提供者的安裝指示。

  2. server.xml 檔中啟用 customPasswordEncryption 提供者特性。
    customPasswordEncryption 提供者的擁有者會提供特性的名稱,如下列範例所示:
    <featureManager>
         <feature>usr:customPasswordEncryption-1.0</feature>
    </featureManager>
  3. 啟動伺服器,並驗證 messages.log 檔中已記載 CWWKS1850I 訊息。
    以下是訊息範例:[8/10/16 7:07:07:007 EDT] 0000001e com.ibm.ws.crypto.util.PasswordCipherUtil I CWWKS1850I:
    The custom password encryption service has started. The class name is com.ibm.websphere.crypto.sample.customencryption.CustomEncryptionImpl.

指示主題類型的圖示 作業主題



「時間戳記」圖示 前次更新: 2016 年 11 月 30 日
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=twlp_config_custencrypt_libertyruntime
檔名:twlp_config_custencrypt_libertyruntime.html