配置 IBM® JRE 與安全的 WebSphere Application Server 通訊

如果您想要使用 Web 服務精靈來擷取 HTTPS WSDL,或想要使用「Web 服務瀏覽器」來存取安全的 WebSphere® Application Server,請使用下列步驟。如果發生類似於 Error opening socket: javax.net.ssl.SSLHandshakeException: unknown certifcate 的錯誤,此作業可以解決問題。發生此錯誤是因為 WebSphere Application Server 在協議安全連線時所用的安全憑證,並不是其他 JRE 型應用程式通常會共用的憑證。

關於這項作業

重要: 適用於 WebSphere Application Server 傳統版
如果要配置 JRE 來接受 WebSphere Application Server 憑證,請執行下列動作:

程序

  1. 從 Eclipse JRE 啟動 iKeyman 工具,此工具位於 WebSphere Application Server 安裝目錄的下列位置:install_dir\java\jre\bin\ikeyman.exe。伺服器的預設安裝位置:
    • WebSphere Application Server:install_dir\java\jre\bin\ikeyman.exe
    註: install_dir 目錄是您安裝此 WebSphere Application Server 版本的位置。
  2. 按一下開啟金鑰資料庫檔圖示:
    「開啟金鑰資料庫檔」圖示的畫面擷取
  3. 在開啟的視窗中,按一下瀏覽,然後在 WebSphere Application Server 設定檔中找出 DummyClientTrustFile.jks。預設位置可能類似於 install_dir\profiles\profile_name\etc\DummyClientTrustFile.jks 找到檔案之後,按一下確定。
    DummyClientTrustFile.jks 的畫面擷取
  4. 系統會提示您輸入密碼。輸入 WebAS。
  5. 從清單中選取簽章者憑證,然後選取 default_signer 並按一下擷取。
  6. 請記下憑證的位置和名稱,在後續步驟中需要用到。按一下確定以儲存檔案。
  7. 再次按一下開啟金鑰資料庫檔圖示,並瀏覽至 Eclipse JRE cacerts。此檔案位於:install_dir\java\jre\lib\security\cacerts。
  8. 提示您輸入密碼時,請輸入 changeit。
  9. 按一下新增,並瀏覽至稍早儲存的檔案。您必須將檔案類型欄位設為「所有檔案」。在開啟的視窗中選取正確的檔案之後,按一下確定。
  10. 輸入憑證的標籤。

結果

JRE 現在可以自動接受伺服器憑證。憑證可能限於憑證上的相同主機名稱(主機名稱,包括網域)。
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: last_date

File name: twsconfigjressl.html