解决脚本化配置错误

在与 SSL 相关的作业日志中会出现错误消息。这些错误的可能原因是没有为在运行脚本化设置的用户正确设置 SSL 证书。

症状

在作业日志中会出现以下错误消息:
WASX7023E: Error creating "SOAP" connection to host "localhost"; exception information: com.ibm.websphere.management.exception.ConnectorNotAvailableException: SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty; targetException=java.lang.IllegalArgumentException: Error opening socket: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

原因

可能没有为在运行脚本化设置的用户正确设置 SSL 证书。

环境

您正在 WebSphere® Application Server 或 WebSphere Application Server for z/OS® 上运行 Decision Server Rules、Decision Center Enterprise Console 或 Decision Center“业务”控制台。

解决问题

  1. 在 WebSphere Application Server Integrated Solutions Console 中,转至安装性 > SSL 证书和密钥管理 > SSL 配置。
  2. 单击 <was_node>/DefaultIIOPSSL,其中 <was_node> 是发生错误的 WebSphere Application Server 节点的名称。
  3. 运行以下 TSO 命令:
    RACDCERT ADDRING(<keyring_name>) LABEL('WebSphereCA') CERTAUTH)
    其中 <keyring_name> 指定该证书正连接到的密钥环。您必须指定由 WebSphere Application Server 使用的环名称。有关更多信息,请参阅 IBM Knowledge Center 中的 RACDCERT CONNECT (Connect a certificate to key ring)。
  4. 运行以下 TSO 命令:
    RACDCERT ID(<user_id>) CONNECT (RING(<keyring_name>) LABEL('WebSphereCA') CERTAUTH)
    其中 <user_id> 是运行脚本化设置的 RACF® 用户标识。

如果运行这些命令时未发生错误,那么 SSL 证书已正确设置以允许运行脚本。