I ran into this problem encountered on a windows machine. You need to renew the SSL certificate, which you can complete by completing the following steps:
Step 1: Get a New Certificate of Trust
We need to download AddTrustExternalCARoot-2048.pem .
Use the link above and put / save this file somewhere where you can easily find it (for example, your desktop).
IMPORTANT: the file must have .pem as an extension. Browsers such as Chrome will try to save it as a regular text file. Make sure you change the file name to have a .pem in it after downloading it.
Step 2. Locate the RubyGems certificate directory in your installation.
To copy this file, we need to know where to put it.
Depending on where you installed Ruby, the directory will be different.
Take, for example, the default installation of Ruby 2.1.5, placed in C: \ Ruby21
Open a command prompt and type:
C:> a gem that we chop C: /Ruby21/lib/ruby/2.1.0/rubygems.rb Now find this directory. Inside the same window, enter part of the path to the file extension, but use a backslash instead:
C:> start C: \ Ruby21 \ lib \ ruby ββ\ 2.1.0 \ rubygems This will open the explorer window in the directory we specified.
Step 3: Copy the New Trust Certificate
Now find the ssl_certs directory and copy the .pem file obtained from the previous step.
It will be listed in other files, such as GeoTrustGlobalCA.pem.
Thanks to this link to provide the information I need: https://gist.github.com/luislavena/f064211759ee0f806c88