By chris220342
I am trying to use vagrant to create droplets. I am following the tutorial entitled “How to Use DigitalOcean as Your Provider in Vagrant on an Ubuntu 12.10”. As mentioned in the tutorial, I am getting the error:
The secure connection to the Digital Ocean API has failed. Please ensure that your local certificates directory is defined in the provider config.
config.vm.provider :digital_ocean do |vm|
vm.ca_path = "/path/to/ssl/ca/cert.crt"
end
This is generally caused by the OpenSSL configuration associated with the Ruby install being unaware of the system specific ca certs.
However, the solution mentioned in the tutorial does not work for me, because I am running vagrant in a droplet and it does not contain the file /etc/ssl/certs/ca-certificates.crt. I tried creating the file using the make-dummy-cert script in /etc/ssl/certs, but this does not help. How do I get the correct /etc/ssl/certs/ca-certificates.crt file?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Try installing curl: <br> <br><pre>sudo apt-get install curl</pre> <br> <br>I believe that should install ca-certificates.crt.
I followed https://github.com/smdahlen/vagrant-digitalocean#install. In short you need to install Homebrew' then do this <br> brew install curl-ca-bundle<br>then you set the path in Vagrantfile and ~/.bashrc to <br>/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt`
<br>and it worked.
Also, if you use macports rather than homebrew, the path is /opt/local/share/curl/curl-ca-bundle.crt .
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.