Question

Vagrant missing ssl certificate.

Posted August 27, 2013 7.7k 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?

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.

×
3 answers
Try installing curl:

sudo apt-get install curl


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
`brew install curl-ca-bundle`
then you set the path in Vagrantfile and ~/.bashrc to
`/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt`
and it worked.
Also, if you use macports rather than homebrew, the path is /opt/local/share/curl/curl-ca-bundle.crt .
Submit an Answer