Preventing SSL handshaking exceptions
To prevent SSL handshaking exceptions, ensure that the certificate of a server can be found in the truststore of a client. If the certificate is not found in the truststore and the client is a browser, a security alert dialog is displayed. A user can use the dialog to view the certificate and select whether to proceed.
When a web service is invoked from a Rich UI application, the EGL Rich UI Proxy establishes a HTTP or HTTPS connection between the proxy and web service. This connection is independent of the connection between the browser and proxy. If the web service has an HTTPS protocol, the connection between the proxy and web service uses SSL. Because no browser is available to display a security alert and prompt for a response, the certificate that belongs to the server of the web service must be in the truststore of the server of the EGL Rich UI Proxy before the connection is initiated. Otherwise a handshaking error occurs.
To obtain a copy of the server's certificate when calling a third-party web service, enter the URL of the web service in a browser over HTTPS. The way in which you receive the certificate of the server varies depending on the browser. A common way is through a "View Certificate" button, Details tab, and "Copy to File" button. Save the certificate to a file. Use the Administrative Console to open the truststore of your EGL Rich UI Proxy and import the saved certificate as a signer certificate.
- Start the WebSphere® V6.1 or V7.0 server that contains your EGL Rich UI Proxy. The proxy is deployed to the same location as the generated HTML file of your Rich UI application.
- Right click the server. Click .
- Log in to the Administrative Console.
- Expand Security and click SSL certificates and key management.
- Under Related Items, click Key stores and certificates.
- Click the appropriate truststore.
- Click Signer certificates.
- Click Retrieve from port.
- Specify the following values:
- Host
- localhost
- Port
- 9444
- SSL configuration for outbound connection
- NodeDefaultSSLSettings
- Keystore name
- SampleCert
- Click .