By sergeykhval
I’m following the How To Use ActiveStorage in Rails 6 with DigitalOcean Spaces tutorial and after setting up DigitalOcean Space and trying to upload an image I get the following error
Seahorse::Client::NetworkingError (SSL_connect returned=1 errno=0 state=error: certificate verify failed (unspecified certificate verification error))
I’m running the app with ruby 2.7.1 on macOS 13.0 on M1 chip. ruby has been compiled with the following options
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
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!
Turns out the problem was in incorrect bucket name in the storage config. bucket should be the same as the endpoint jsut without https:// part
digitalocean:
endpoint: https://bucket-name.region.digitaloceanspaces.com
bucket: bucket-name.region.digitaloceanspaces.com
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.