Installation of certificate for Java Runtime

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש

לעברית לחצו כאן

To switch from edit view to read view

To search in the Wiki

Home page > Security certificate > Installation of certificate for Java Runtime ‎‎


The Java Runtime does not use the OS certificate store, but instead maintains it's own trusted certificate store. In order for Java based programs (e. g. Eclipse IDE) to be able to access secure sites, it is necessary to separately install a certificate into the Java certificate store[1].

Download the NetFree Security certificate from. http://netfree.link/netfree-ca.crt

Then run the following command in an elevated command prompt[2]:

keytool -import -trustcacerts -alias netfree-ca -file netfree-ca.crt -keystore "%JAVA_HOME%"/jre/lib/security/cacerts -storepass changeit

"keytool" is located in the next location:

%JAVA_HOME%\bin

Or:

C:\Program Files\Java\jdk<Your JDK version>\bin


Some Java based programs install their own Java runtime in the programs directory, rather than relying on the system-wide JRE. In this case, the path to cacerts in the above command must be replaced to point to the cacerts file contained in the applications private JRE.

  1. The installation of the certificate for Java is supposed to be dealt with in the automatic installer. However, due to a bug, for the time being this doesn't work with 64 bit installations of the Java Runtime. See here.
  2. The Security certificate must be stored in the same folder as keytool, otherwise in the command you must change the parameter "netfree-ca.crt" to the full path of the certificate.