Installation of certificate for Java Runtime
לעברית לחצו כאן
Update: as of 3 May 2019, a new certificate installation software was released, the new software automatically installs the certificate also in Java Runtime Environment.
Java Runtime Environment
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 install the certificate into the Java certificate store.
Download the NetFree Security certificate from. http://netfree.link/netfree-ca.crt
Then run the following command in an elevated command prompt:
keytool -import -trustcacerts -alias netfree-ca -file netfree-ca.crt -keystore "%JAVA_HOME%"/jre/lib/security/cacerts -storepass changeit
"keytool" is located in the following location:
C:\Program Files\Java\jdk<Your JDK version>\bin
Sometimes JAVA-based software installs a private Java Runtime Environment in Program Files instead of using the globally installed environment (e.g., all intelij software (including android studio)). In this case it is necessary to import the NetFree certificate for each software separately.
To import the certificate, you must first locate the file that stores the certificates. Usually the JAVA environment is installed in program files in a subfolder named java or jre. Inside the subfolder there will be a path named:
lib\security\ and inside it a file named
You can also search for the cacerts file that the software uses, with search software such as everything searching for the word cacerts and check the path of the file.
Find the path to the
cacerts file in the specific software installation, and use this path with the command mentioned above.
The security certificate can be imported using graphical software called KeyStore Explorer, the software is downloadable from here.
Instructions for use:
The software usually needs to be run as a administrator.
In the welcome window, click on the highlighted area:
In the window that opens, choose the
cacerts file, which is in the location described above.
A password request will now appear:
The default password is
Now the file is open and we will see a list of existing certificates . Click "Import Trusted Certificates":
And select the NetFree certificate file. (can be downloaded from here).
In the next window, click "OK".
- 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.