2011-02-08

java.lang.ClassNotFoundException: java.io.IOException: javax.net.ssl.SSLException: SSL handshake failed: X509CertChainInvalidErr

java.lang.ClassNotFoundException: java.io.IOException: javax.net.ssl.SSLException: SSL handshake failed: X509CertChainInvalidErr
see also : http://www.oratransplant.nl/2005/07/11/using-self-signed-ssl-certificates-with-jinitiator/

X509CertChainInvalidErr When Accessing TMS After Enabling SSL [ID 1160754.1]
 

Solution

Use the following workaround to update the certdb.txt:

1. Double-click on the yellow lock in the status bar of Internet Explorer after getting this warning.
2. Navigate to the ‘Certification Path’ tab and see if the self-signed certificate has a root certificate.
3. If that’s the case, select the root certificate and press the ‘View Certificate’ button.
4. If there is no root certificate, just continue with the self-signed cerficate.
5. Go to the ‘Details’ tab and press the ‘Copy to File’ button.
6. Save the certificate as Base-64 encoded.
7. Open the base-64 encoded certificate in a text-editor.
8. Copy the entire contents (including BEGIN CERTIFICATE and END CERTIFICATE lines).
9. Now open the certdb.txt file in the lib/security directory of your Oracle JInitiator
(in my case example C:\Program Files\Oracle\JInitiator 1.3.1.26\lib\security\certdb.txt).
10. Add the copied certificate to this file and prepend it with some comment lines (beginning with #) to explain what the certificate is.
11. Close any open web browsers to close the associated JVM’s and try to start the application again.

Niciun comentariu:

Trimiteți un comentariu