So, you've fixed your initial deploy setup. Not yet a final hurrah?
You're running an ROR-Paperclip-S3 setup. Works fine locally, but not in production. Server boots, pages do load up, but no love for assets?!
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed):
You'll be googling around trying to look for the right solution. If you have a domain, just generate the right CSR
, CRT
and KEY
files. However, if your server is self-signed, you'll probably just need the ca-bundle. If you're using capistrano,
cd /your/app/shared/system
wget http://curl.haxx.se/ca/cacert.pem
In your initializer, create a new file named: aws.rb with the following contents:
require 'aws'
AWS.config(
access_key_id: ENV['access_key_id'],
secret_access_key: ENV['secret_access_key'],
bucket: ENV['BUCKET'],
ssl_ca_file: ENV['ssl_ca_file'],
)
Your ENV['ssl_ca_file']
should be pointed to /your/app/shared/system/cacert.pem
. Restart your server, and it should be good to go!
Author
Maricris Nonato
I turn tech ideas into websites using Ruby. I'm a budding Buddhist practitioner, passionate about health & fitness, a certified yoga teacher, and a cat fanatic!
Recent posts
Tags
- cats
- yoga
- blood pressure
- elecom
- scrum
- coderkitty
- RailsGirls
- workstation
- creativity
- live book signing
- healthy living
- lowering blood pressure
- crafting
- movies
- reviews
- new year
- blessings
- faith
- quotes to live by
- travelers notebook
- Bujo
- planners
- Monday Motivation
- himalayan salt lamp
- productivity
- life tips
- happiness
- success
- ruby
- digital ocean
- regex
- programming
- humor
- music
- pyromusical
- sphinx
- mac
- games
- musings
- yogi
- namaste
- photography
- hobby
- slimming
- sendmail
- lifestyle
- memes
- open letter
- sports
- shooting
- events
- meetups
- tech talks
- rails
- datatables
- sorting
- cycling
- COVID-19
- wishlist
- xmas
- tradition
- song lyrics
- life lessons
- poems
- short story
- food
- living life
- nginx
- technology
- youtube
- my Nyey
- meditation
- new normal
- jump rope
- two-wheel journey
- planner girl
- rubyist
- culture
- Filipino
- mental health
- counseling
- self-care
Advertise
Newsletter
Instagram Feed
Links
I'm sharing with you P150 gift from GoFutureFresh! Click here to accept my gift.