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

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש
({{קישור אנגלית לתצוגת קריאה}})
מ (fix: use {{he}} for link to hebrew page instead of {{en}} (דרך WP:JWB))
 
(10 גרסאות ביניים של 4 משתמשים אינן מוצגות)
שורה 1: שורה 1:
<div lang="en" dir="ltr" class="mw-content-ltr">
+
{{he|התקנת תעודה ב-ruby}}
<div lang="he" dir="rtl">
+
{{Navigation|Security certificate}}
לעברית [[התקנת תעודה ב ruby|לחצו כאן]]
 
</div>
 
  
{{קישור אנגלית לתצוגת קריאה}}
+
==Installation instructions==
  
<div lang="en" dir="ltr">
+
#Download the certificate of your Provider of NetFree from here http://netfree.link/netfree-ca.crt.
<small>
+
#Change the extension of the certificate to pem, now the filename will be netfree-ca.pem.
''[[NetFriends|Home page]]'' > ''[[Security certificate]]'' > ''{{PAGENAME}}''
+
#Insert the certificate into the designated folder as described below.
</small>
+
#Refresh the certificate as detailed below
  
== Installation instructions ==
+
'''Note: When you install a different version of Ruby, If you do not use RVM, the certificate will need to be reinstalled.'''
  
# Download the certificate of your Provider of NetFree from here http://netfree.link/netfree-ca.crt.
+
==The folders where the certificate should be inserted==
# 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.
 
# Refresh the certificate by running the script c_rehash.rb as detailed below
 
  
'''Note: When you install a different version of Ruby, the certificate will need to be reinstalled.'''
+
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.
  
== The folder where the certificate should be inserted ==
+
===In Windows:===
 +
<pre>C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\ssl</pre>
  
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.
+
For example: <pre>C:\Ruby25-x64\ssl</pre>
  
In Windows:
+
<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>
  
C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\ssl
+
For example: <pre>C:\Ruby25-x64\lib\ruby\2.5.0\rubygems\ssl_certs\netfree.link</pre>
  
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
+
'''Note:''' If you selected MinGW during Ruby installation, you should also install NetFree's certificate in the MinGW directory.
 +
To do so, navigate to :
 +
<pre>C:\Ruby\25-x64\msys64\usr\ssl\cert</pre>
  
For example: C:\Ruby25-x64\lib\ruby\2.5.0\rubygems\ssl_certs\netfree.link
+
Locate the file <b>ca-bundle.crt</b>, and open it in notepad. Paste the NetFree certificate into the end of the file.
  
In Mac:
 
  
/opt/rubies/{The version number}/ssl
+
===In Mac:===
  
For example: /opt/rubies/2.5.0/ssl
+
<pre>/opt/rubies/{The version number}/ssl</pre>
  
/opt/rubies//lib/ruby/{The version number}/rubygems/ssl_certs/netfree.link
+
For example: <pre>/opt/rubies/2.5.0/ssl</pre>
  
For example: /opt/rubies/2.5.0/lib/ruby/2.5.0/rubygems/ssl_certs/netfree.link
+
<pre>/opt/rubies//lib/ruby/{The version number}/rubygems/ssl_certs/netfree.link</pre>
  
== Refresh the certificates ==
+
For example: <pre>/opt/rubies/2.5.0/lib/ruby/2.5.0/rubygems/ssl_certs/netfree.link</pre>
  
In the following folder appears in the script c_rehash.r run it:
+
=== For users with RVM (Ruby Version Manager): ===
  
In Windows:
+
To find the path where the certificate should be inserted: <pre>rvm osx-ssl-certs status all</pre>
  
C:\Ruby{The version number}{-x64 - If it's a 64-bit operating system}\ssl\certs
+
To update the certificates: <pre> rvm osx-ssl-certs update all </pre>
  
In Mac:
+
The "update" command may not have worked properly, you can check if the contents of the "netfree-ca.pem" file were copied into the "cert.pem" file.
  
/opt/rubies/{The version number}/ssl/ssl_certs
+
If not, you can manually copy the file ''netfree-ca.pem''
 +
to the end of the ''cert.pem'' file located in the above routing.
  
Run the script c_rehash.rb Which is located in the same folder, it will install the certificate.
+
(Copy should include''-----BEGIN CERTIFICATE-----'', ''-----END CERTIFICATE-----'')
 +
 
 +
==Refresh the certificates==
 +
 
 +
===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 Mac:===
 +
 
 +
The following folder shows the c_rehash.r script run it:
 +
 
 +
<pre>/opt/rubies/{The version number}/ssl/ssl_certs</pre>
 +
 
 +
 
 +
=== For users with RVM (Ruby Version Manager): ===
 +
Run the following command:
 +
<pre> rvm osx-ssl-certs update all </pre>

גרסה אחרונה מ־04:10, 17 באוגוסט 2023

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

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 folders 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


Note: If you selected MinGW during Ruby installation, you should also install NetFree's certificate in the MinGW directory. To do so, navigate to :

C:\Ruby\25-x64\msys64\usr\ssl\cert

Locate the file ca-bundle.crt, and open it in notepad. Paste the NetFree certificate into the end of the file.


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 

The "update" command may not have worked properly, you can check if the contents of the "netfree-ca.pem" file were copied into the "cert.pem" file.

If not, you can manually copy the file netfree-ca.pem to the end of the cert.pem file located in the above routing.

(Copy should include-----BEGIN CERTIFICATE-----, -----END CERTIFICATE-----)

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