當使用WAS的應用發送MQ的時候,會遇到如下錯誤:
The certificate issued by CN=DigiCert High Assurance EV Root CA, OU=www.digicert.com, O=DigiCert Inc, C=US is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
這意味着需要先導入證書到WAS:
導入步驟:
1:點擊was菜單 Security->SSL certificate and key management 看到如下頁面:
2 點擊頁面上的Key stores and certificates, 進入頁面後點擊
3 點擊NodeDefaultTrustStore
4 在出現頁面中點擊Signer certificates
5 在顯示頁面中點擊Add按鈕:
6 首先上傳文件到/opt/root.cert這個位置,然後輸入一個證書名: MyRootCert. 點擊Aplly按鈕,在點擊Ok按鈕。
證書導入完成。
在試着發送MQ, 成功。