OpenSSL + Self Signed Cert = OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Extracted from here:
If there’s already a CA bundle on disk that you want to use, point
SSL_CERT_FILE
orSSL_CERT_DIR
environment variables to it, or set theca_file=
orca_path=
properties in Net::HTTP.
So all you have to do is this
ENV['SSL_CERT_FILE'] = "your certificate path"
and all should work.
You might find this resource useful: