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.