Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How to configure Eclipse IDE to use SSL with Windows

PREREQUISITES

...

indent
1
1
Before you begin, you must have the following:
Panel
  • a trusted server Java keystore.
    If you do not have a Trusted Server Java keystore, click here for instructions on how to create a trusted server Java keystore.

1. The eclipse.ini file

Panel
Wiki Markup

For this example, it is assumed that:


* The Java trusted server keystore has been created and is named *serverTrustStore.jks*.

* The directory path to the trusted server keystore is */usr/local/*.

* The password for the trusted server keystore is *changeit*.

* Eclipse has been installed at */usr/local/eclipse*.


You must make name and path adjustments to the above assumptions to conform to your configuration.


# cd to */usr/local/eclipse* and edit the *eclipse.ini* file.
  The contents of the
  The contents of the eclipse.ini file should be similar to the following:

Code Block

\\
{code}
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
add the following 2 lines to the -vmargs as shown below.
    

{code}
\\
# add the following 2 lines to the *-vmargs* as shown below.
\\
\\
{indext:1}
-Djavax.net.ssl.trustStore=/usr/local/serverTrustStore.jks

    

-Djavax.net.ssl.trustStorePassword="changeit"

Code Block
 
{indent}
\\
{code}
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Djavax.net.ssl.trustStore=/usr/local/serverTrustStore.jks 
-Djavax.net.ssl.trustStorePassword="changeit" 
-Xms40m
-Xmx512m
Save the above changes and restart the Eclipse IDE.

{code}
\\
Change the *trustStorePassword* from *changeit* to the password of your trust store.
\\
# Save the above changes and restart the Eclipse IDE.