Edit online

When Oxygen XML Author Eclipse plugin cannot connect to an HTTPS-capable server, most likely there is no certificate set in the Java Runtime Environment (JRE) that Oxygen XML Author Eclipse plugin runs into. The following procedure describes how to:
  • Export a certificate to a local file using any HTTPS-capable Web browser (for example, Internet Explorer).
  • Import the certificate file into the JRE using the keytool that comes bundled with Oxygen XML Author Eclipse plugin.
Tip: To make Oxygen XML Author Eclipse plugin accept a certificate even if it is invalid, open the Preferences dialog box , go to Network Connection settings > HTTP(S)/WebDAV, and select the Automatically accept a security certificate, even if invalid option.
Note: This Automatically accept a security certificate, even if invalid option does not influence the entire Eclipse workspace. It is limited to URLs that are opened directly by Oxygen XML Author Eclipse plugin.
  1. Export the certificate into a local file
    1. Point your HTTPS-aware Web browser to the repository URL.

      If this is your first visit to the repository, it will display a security alert stating that the security certificate presented by the server is not trusted.

      Figure 1. Security alert - untrusted certificate
    2. Go to Tools > Internet Options.
      The Internet Options dialog box is opened.
    3. Select the Security tab.
    4. Select the Trusted sites icon.
    5. Click the Sites button.
      This will open the Trusted sites dialog box.
    6. Add the repository URL to the Websites list.
    7. Close the Trusted sites and Internet Options dialog boxes.
    8. Try again to connect to the same repository URL in Internet Explorer.
      The same error page as above will be displayed.
    9. Select the Continue to this website option.
      A clickable area with a red icon and the text Certificate Error is added to the Internet Explorer address bar.
    10. Click the Certificate Error area.
      A dialog box that contains a View certificates link is displayed.
    11. Click the View certificates link.
      Certificate dialog box is displayed.
    12. Select the Details tab of the Certificate dialog box.
    13. Click the Copy to File button.
      The Certificate Export Wizard is started.
    14. Follow indications of the wizard for the DER encoded binary X.509 certificate. Save the certificate to the local file server.cer.
  2. Import the local file into the JRE running Oxygen XML Author Eclipse plugin.
    1. Open a text-mode console with administrative rights.
      If Oxygen XML Author Eclipse plugin has been installed in a user's home directory and includes a bundled JRE, administrative rights are not required. In all other cases, administrative rights will be required.
    2. Go to the lib/security directory of the JRE running Oxygen XML Author Eclipse plugin. You can find the home directory of the JRE in the java.home property that is displayed in the About dialog box (Installation Details > Configuration).
      On OS X, for the distribution of Oxygen XML Author Eclipse plugin that bundles the JRE from Oracle, the JRE uses the .install4j/jre.bundle/Contents/Home/jre/lib/security/cacerts path within its installation directory.
    3. Run the following command:
      ..\..\bin\keytool -import -trustcacerts -file server.cer -keystore cacerts
      The server.cer file contains the server certificate, created during the previous step. The keytool requires a password before adding the certificate to the JRE keystore. The default password is changeit. If someone changed the default password, then that person is the only one who can perform the import.
      Tip: If you need to import multiple certificates, you need to specify a different alias for each additional imported certificate with the -alias command-line argument, as in the following example:
      ..\..\bin\keytool -import -alias myalias1 -trustcacerts -file 
      server1.cer -keystore cacerts
       
      ..\..\bin\keytool -import -alias myalias2 -trustcacerts -file 
      server2.cer -keystore cacerts 
  3. Restart Oxygen XML Author Eclipse plugin.