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

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש
שורה 26: שורה 26:
  
 
<br />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 <code>cacerts</code> in the above command must be replaced to point to the <code>cacerts</code> file contained in the applications private JRE.
 
<br />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 <code>cacerts</code> in the above command must be replaced to point to the <code>cacerts</code> file contained in the applications private JRE.
 +
 +
[http://forum.netfree.link/topic/6023 See also here]
  
 
<references />
 
<references />

גרסה מ־17:13, 2 בנובמבר 2019

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

To switch from edit view to read view

To search in the Wiki

Home page > Security certificate > 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.

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.

See also here

  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.