Wrong certificates in ruby
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failedI got the same error when I try to run this code:
test.rb require 'open-uri' open('https://www.google.com/')I try to set this export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt, but it didn't work :( I will appreciate if anyone can point me to the right direction. Regards
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.