Installation of certificate in ruby: הבדלים בין גרסאות בדף

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש
שורה 6: שורה 6:
  
 
{{Navigation|Security certificate}}
 
{{Navigation|Security certificate}}
 
  
 
==Installation instructions==
 
==Installation instructions==
שורה 13: שורה 12:
 
#Change the extension of the certificate to pem, now the filename will be netfree-ca.pem.
 
#Change the extension of the certificate to pem, now the filename will be netfree-ca.pem.
 
#Insert the certificate into the designated folder as described below.
 
#Insert the certificate into the designated folder as described below.
#Refresh the certificate by running the script c_rehash.rb as detailed below
+
#Refresh the certificate as detailed below
  
'''Note: When you install a different version of Ruby, the certificate will need to be reinstalled.'''  
+
'''Note: When you install a different version of Ruby, If you do not use RVM, the certificate will need to be reinstalled.'''  
  
 
==The folder where the certificate should be inserted==
 
==The folder where the certificate should be inserted==
שורה 21: שורה 20:
 
There are two options, please [http://netfree.link/user#/tickets/new report us at our support system] which option has been useful to you, thank you.
 
There are two options, please [http://netfree.link/user#/tickets/new report us at our support system] which option has been useful to you, thank you.
  
In Windows:
+
===In Windows:===
 +
<pre>C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\ssl</pre>
 +
 
 +
For example: <pre>C:\Ruby25-x64\ssl</pre>
 +
 
 +
<pre>C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\lib\ruby\{The version number}\rubygems\ssl_certs\netfree.link</pre>
 +
 
 +
For example: <pre>C:\Ruby25-x64\lib\ruby\2.5.0\rubygems\ssl_certs\netfree.link</pre>
  
C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\ssl
+
===In Mac:===
  
For example: C:\Ruby25-x64\ssl
+
<pre>/opt/rubies/{The version number}/ssl</pre>
  
C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\lib\ruby\{The version number}\rubygems\ssl_certs\netfree.link
+
For example: <pre>/opt/rubies/2.5.0/ssl</pre>
  
For example: C:\Ruby25-x64\lib\ruby\2.5.0\rubygems\ssl_certs\netfree.link
+
<pre>/opt/rubies//lib/ruby/{The version number}/rubygems/ssl_certs/netfree.link</pre>
  
In Mac:
+
For example: <pre>/opt/rubies/2.5.0/lib/ruby/2.5.0/rubygems/ssl_certs/netfree.link</pre>
  
/opt/rubies/{The version number}/ssl
+
=== For users with RVM (Ruby Version Manager): ===
  
For example: /opt/rubies/2.5.0/ssl
+
To find the path where the certificate should be inserted: <pre>rvm osx-ssl-certs status all</pre>
  
/opt/rubies//lib/ruby/{The version number}/rubygems/ssl_certs/netfree.link
+
To update the certificates: <pre> rvm osx-ssl-certs update all </pre>
  
For example: /opt/rubies/2.5.0/lib/ruby/2.5.0/rubygems/ssl_certs/netfree.link
 
  
 
==Refresh the certificates==
 
==Refresh the certificates==
  
In the following folder appears in the script c_rehash.r run it:
+
===In Windows:===
 +
 
 +
The following folder shows the c_rehash.r script run it:
 +
 
 +
<pre>C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\ssl\certs</pre>
  
In Windows:
+
===In Mac:===
  
C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\ssl\certs
+
The following folder shows the c_rehash.r script run it:
  
In Mac:
+
<pre>/opt/rubies/{The version number}/ssl/ssl_certs</pre>
  
/opt/rubies/{The version number}/ssl/ssl_certs
 
  
Run the script c_rehash.rb Which is located in the same folder, it will install the certificate.
+
=== For users with RVM (Ruby Version Manager): ===
 +
Run the following command:
 +
<pre> rvm osx-ssl-certs update all </pre>

גרסה מ־21:05, 20 באפריל 2020

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


To switch from edit view to read view

To search in the Wiki


Home page > Security certificate > Installation of certificate in ruby ‎‎


Installation instructions

  1. Download the certificate of your Provider of NetFree from here http://netfree.link/netfree-ca.crt.
  2. Change the extension of the certificate to pem, now the filename will be netfree-ca.pem.
  3. Insert the certificate into the designated folder as described below.
  4. Refresh the certificate as detailed below

Note: When you install a different version of Ruby, If you do not use RVM, the certificate will need to be reinstalled.

The folder where the certificate should be inserted

There are two options, please report us at our support system which option has been useful to you, thank you.

In Windows:

C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\ssl
For example:
C:\Ruby25-x64\ssl
C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\lib\ruby\{The version number}\rubygems\ssl_certs\netfree.link
For example:
C:\Ruby25-x64\lib\ruby\2.5.0\rubygems\ssl_certs\netfree.link

In Mac:

/opt/rubies/{The version number}/ssl
For example:
/opt/rubies/2.5.0/ssl
/opt/rubies//lib/ruby/{The version number}/rubygems/ssl_certs/netfree.link
For example:
/opt/rubies/2.5.0/lib/ruby/2.5.0/rubygems/ssl_certs/netfree.link

For users with RVM (Ruby Version Manager):

To find the path where the certificate should be inserted:
rvm osx-ssl-certs status all
To update the certificates:
 rvm osx-ssl-certs update all 


Refresh the certificates

In Windows:

The following folder shows the c_rehash.r script run it:

C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\ssl\certs

In Mac:

The following folder shows the c_rehash.r script run it:

/opt/rubies/{The version number}/ssl/ssl_certs


For users with RVM (Ruby Version Manager):

Run the following command:

 rvm osx-ssl-certs update all