Installation of certificate for Java Runtime: הבדלים בין גרסאות בדף

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש
מ (Yzahn העביר את הדף Installation of certificate in Eclipse לשם Installation of certificate for Java Runtime: these instructions apply to all Java based programs.)
שורה 4: שורה 4:
 
{{Navigation|Security certificate}}
 
{{Navigation|Security certificate}}
  
Download NetFree Security certificate from. http://netfree.link/netfree-ca.crt
+
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<ref>The installation of the certificate for Java is supposed to be dealt with in the [[Installing a common certificate|automatic installer]]. However, due to a bug, for the time being this doesn't work with 64 bit installations of the Java Runtime. See [http://forum.netfree.link/topic/5126/האם-certinstaller-exe-אמור-להתקין-תעודה-גם-עבור-java here].</ref>.
  
Then run the following command via CMD Operated as administration:
+
Download the NetFree Security certificate from. http://netfree.link/netfree-ca.crt
 +
 
 +
Then run the following command as an administrator<ref>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.</ref>:
  
 
<pre>
 
<pre>
שורה 12: שורה 14:
 
</pre>
 
</pre>
  
The keytool is located in the next location:
+
"keytool" is located in the next location:
 
<pre>
 
<pre>
 
%JAVA_HOME%\bin
 
%JAVA_HOME%\bin
שורה 18: שורה 20:
 
Or:
 
Or:
 
<pre>
 
<pre>
C:\Program Files\Java\jdk<The version installed by you>\bin
+
C:\Program Files\Java\jdk<Your JDK version>\bin
 
</pre>
 
</pre>
  
Note:<br />
+
<br />
The Security certificate must be stored in the folder in which the keytool is located keytool, otherwise in the command you must change netfree-ca.crt To the full path of the certificate.
 

גרסה מ־11:09, 25 בינואר 2019

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

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 as an administrator[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


  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.