WebSphere 6.x 远程部署证书信任问题的解决
使用ws_ant.bat远程部署到使用SSL连接的WebSphere 6.0/6.1时,可能发生如下错误:
引用 [wsadmin] WASX7023E: 创建与主机“gzvs150Cell01”的“SOAP”连接时出错;异常信息:com.ibm.websphere.management.exception.ConnectorNotAvailableException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted; targetException=java.lang.IllegalArgumentException: Error opening socket: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted]
这种情况需要把服务器的证书复制出来(直接用IE的证书察看功能),然后导入到
C:\IBM\WebSphere\AppServer\profiles\AppSrv01\etc\DummyClientTrustFile.jks 文件中。默认的密码是:WebAS