Certificate error on vagrant provision

  • Posted January 2, 2014

I keep getting this error when trying to provision a dropplet:

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.

I’ve already tried these solutions, but none seem to work:


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Yes, tried but failed. If I echo out the SSL_CERT_FILE variable it gives me the correct location, but still won’t work.

Have you tried downloading <a href=“”></a> and pointing <code>vm.ca_path</code> to it?