title: Where to put certificates cacert.pem for cURL?
body: <p>I'm trying to update rvm on a Debian server :</p>
  
  <pre><code>rvm get stable
  </code></pre>
  
  <p>but I got the folowing error :</p>
  
  <pre><code>curl: (60) SSL certificate problem: unable to get local issuer certificate
  More details here : http://curl.haxx.se/docs/sslcerts.html
  </code></pre>
  
  <p>I installed this servers about 5 month ago and everything was working fine, but it seems that something changed on the certificate of <a href="https://rvm.io" rel="noreferrer">https://rvm.io</a></p>
  
  <p>So I managed to download a new bundle certificate (cacert.pem in my user directory) :</p>
  
  <pre><code>wget http://curl.haxx.se/ca/cacert.pem
  </code></pre>
  
  <p>And try a different command as the <a href="https://rvm.io/rvm/upgrading/" rel="noreferrer">official doc</a> says, but with a option for the certificate file to use :</p>
  
  <pre><code>\curl --cacert ./cacert.pem -L https://get.rvm.io | bash -s stable # update to stable
  </code></pre>
  
  <p>Things moved a bit forward. Unfortunately later on, rvm run again curl during the install process and I got again the same error.</p>
  
  <p><strong>So I was wondering where to put my cacert.pem file to replace theone used by cURL ?</strong></p>
  
  <p>I tried as well other technics :
  creating a .curlrc file containing cacert = ~/cacert.pem
  but I got an error :
      CAfile: cacert.pem
      CApath: /etc/ssl/certs</p>
  
  <p>So I tried to copy my cacert.pem in /usr/share/ca-certificates/cacert.org
  and made a sym link in /etc/ssl/certs that point to /usr/share/ca-certificates/cacert.org/cacert.pem</p>
  
  <p>But, when I </p>
  
  <pre><code>rvm get stable
  </code></pre>
  
  <p>I got the error :</p>
  
  <pre><code>curl: (60) SSL certificate problem: unable to get local issuer certificate
  More details here : http://curl.haxx.se/docs/sslcerts.html
  </code></pre>
  
  <p>I also tried this below, without different result though :</p>
  
  <pre><code>sudo update-ca-certificates -f
  </code></pre>
  
  <p><strong>So I am wondering where to put my cacert.pem file ?</strong></p>