ubl6iw
Last Updated: March 19, 2017
·
34.3K
· joshteng
10504ee74cc7e9984600710e51f08fc9

Fix SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)

Set to verify none (run that bit of code before making the request or put this bit in an initializer)

OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

UPDATE: Solution above works ok if you're just coding on development machine.. But for a far better solution (especially production servers), please follow this link: http://mislav.uniqpath.com/2013/07/ruby-openssl/

4 Responses
Add your response

17427
Ovupdjhe normal

Where shall I add this code to?!

over 1 year ago ·
17924
0 u ug03xoqnm81ilgunsg0cqanvv71lhgznzg0 bawkay2tcccqyali1hsrslkg3asamprxmkz6sj
over 1 year ago ·
21403
None

Thank you!

over 1 year ago ·
24609
None

Thank you very much.
I was facing this problem since 1 month.Thanks a lot

over 1 year ago ·