Vagrant missing ssl certificate.

August 27, 2013 6k views
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?
3 Answers
Try installing curl:

sudo apt-get install curl

I believe that should install ca-certificates.crt.
I followed In short you need to install `Homebrew' then do this
`brew install curl-ca-bundle`
then you set the path in Vagrantfile and ~/.bashrc to
and it worked.
Also, if you use macports rather than homebrew, the path is /opt/local/share/curl/curl-ca-bundle.crt .
Have another answer? Share your knowledge.