[16.0.0.3 及更高版本]

为 Liberty 运行时环境配置 customPasswordEncryption 提供程序

启用 customPasswordEncryption 提供程序以对敏感字符串进行解密。

开始之前

获取包含 customPasswordEncryption 提供程序的企业系统体系结构 (ESA) 文件。ESA 文件实现 com.ibm.wsspi.security.crypto.CustomPasswordEncryption 接口,如“开发 customPasswordEncryption 提供程序”中所述。如果不具有包含 customPasswordEncryption 提供程序的 ESA 文件,请获取 Java™ 归档 (JAR) 文件和一个或多个包含安装指示信息的清单文件。如果要将 customPasswordEncryption 提供程序与 WebSphere® Developer Tools 配合使用,请确保 customPasswordEncryption 提供程序为开发者工具启用 ESA 文件。

关于此任务

启用 customPasswordEncryption 提供程序以对字符串进行解密。customPasswordEncryption 提供程序用于对 server.xml 文件中的字符串进行加密。

过程

  1. 使用 installUtility 命令来安装 ESA 文件。

    如果以不同于 ESA 文件的方式打包 customPasswordEncryption 提供程序,请遵循以下适用于 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:
    已启动定制密码加密服务。类名为 com.ibm.websphere.crypto.sample.customencryption.CustomEncryptionImpl。

用于指示主题类型的图标 任务主题



时间戳记图标 最近一次更新时间: Tuesday, 6 December 2016
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-dist&topic=twlp_config_custencrypt_libertyruntime
文件名:twlp_config_custencrypt_libertyruntime.html