[問題] Websphere SSL問題

看板java作者 (壞老鼠)時間7年前 (2017/08/07 15:57), 編輯推噓2(204)
留言6則, 2人參與, 最新討論串1/1
目前在WebSphere上的SSL Keystore將下面的憑證設定進去了 CN=Entrust.net Certification Authority (2048), OU=(c) 1999 Entrust.net Limited, OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.), O=Entrust.net 一開始是正常可以連線的,但是過了一兩天後就會出現 javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is: java.security.cert.CertPathValidatorException: The certificate issued by CN=Entrust.net Certification Authority (2048), OU=(c) 1999 Entrust.net Limited, OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.), O=Entrust.net is not trusted; internal cause is: java.security.cert.CertPathValidatorException: Certificate chaining error 這期間也沒有對WebShpere做什麼事,就突然不被信任了... 想請問有人有遇過類似的問題嗎 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 175.181.254.24 ※ 文章網址: https://www.ptt.cc/bbs/java/M.1502092678.A.A85.html

08/16 14:31, , 1F
檢查證書鍊看看 確那張憑證有匯入default trust store
08/16 14:31, 1F

08/16 14:32, , 2F
那張有signer也要匯
08/16 14:32, 2F

08/17 23:46, , 3F
你應該有改https傳輸 才會有這個問題 建議直接查閱你的h
08/17 23:46, 3F

08/17 23:46, , 4F
ttp build
08/17 23:46, 4F

08/17 23:50, , 5F
Httpclient 的設置要去設定ssl trust managers 若還是
08/17 23:50, 5F

08/17 23:50, , 6F
不清楚 可以到stackoverflow 去看看 有很多範例
08/17 23:50, 6F
文章代碼(AID): #1PY1s6g5 (java)
文章代碼(AID): #1PY1s6g5 (java)