Vagrant missing ssl certificate.

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"

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?

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Also, if you use macports rather than homebrew, the path is /opt/local/share/curl/curl-ca-bundle.crt .

I followed 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.

Try installing curl: <br> <br><pre>sudo apt-get install curl</pre> <br> <br>I believe that should install ca-certificates.crt.