Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Ok, I managed to make it works, but I'm not very happy with my solution.</p> <p>First mistake I was making is that the instruction in the .curlrc file was incorrect. We should use this file the same way we specify options to the "curl" command. So I removed the "equal sign" :</p> <pre><code>cacert /home/user_me/cacert.pem </code></pre> <p>With this I was able to make the first part of the command to work :</p> <pre><code>\curl -L https://get.rvm.io | bash -s stable </code></pre> <p>The bash part was still failing because rvm was using curl again in root mode.</p> <p>So I copied my <strong>.curlrc</strong> file as well into the <strong>/root</strong> folder.</p> <p>And it worked ! I could even call the standard rvm command :</p> <pre><code>rvm get stable </code></pre> <p>But this is a bit tricky, and I would prefer that curl use my cacert.pem file without all those .curlrc files.</p> <p>Googling more, I found some usefull information <a href="http://blog.nowherelan.com/category/linux/ubuntu-linux/hardy/" rel="nofollow">here</a> and <a href="http://turboflash.wordpress.com/2009/06/23/curl-adding-installing-trusting-new-self-signed-certificate/" rel="nofollow">here</a>. The first reference has a little mistake : When I read the man page of "sudo update-ca-certificates --fresh" command, I realized the guy was puting his file at wrong place.</p> <p>You have to put your certificate into <strong>/usr/share/ca-certificates</strong> folder instead of /usr/local/share/ca-certificates , and then append a line for your certificate into the configuration file <strong>/etc/ca-certificates.conf</strong> (e.g., “my_ca.crt“). Then you may run your "sudo update-ca-certificates --fresh" command.</p> <p>Note : If you copy your certificate to the <strong>/usr/local/share/ca-certificates</strong> instead, then you don't need anymore to modify the /etc/ca-certificates.conf configuration file nor run the "sudo update-ca-certificates --fresh" command.</p> <p>However in my case, for the first solution (/usr/share/ca-certificates) I got an error when I ran the "sudo update-ca-certificates --fresh" command. As second solution, I tried just to put my certificate into /usr/local/share/ca-certificates. But it didn't work.</p> <p>So I gave up and I kept my two .curlrc files.</p> <p>So if anybody could point what I was doing wrong, I would be very grateful.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload