I am using ruby on rails, the paperclip 5
gem, I use it to upload images to Amazon S3 storage.
When submitting, on my actual host machine, everything works perfect, uploads successfully, but if I upload on localhost, I get the following error:
Completed 500 Internal Server Error in 3395ms (ActiveRecord: 2.5ms)
Seahorse::Client::NetworkingError (SSL_connect returned=1 errno=0 state=error: certificate verify failed):
I assume it's because I don't have SSL on localhost. Is there a way to access the S3 storage not using SSL when on localhost? Is there such a setting?
Create a file in initializers and place the below code
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE