joeyates / imap-backup

Backup and Migrate IMAP Email Accounts
MIT License
1.37k stars 75 forks source link

"Certificate verify failed" #71

Closed nihelmasell closed 5 years ago

nihelmasell commented 5 years ago

Hi, I did what you told me. I edited the json file with my credentials, and I got the App password from Google. I get the following error "/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/net/imap.rb:1490:in `connect': SSL_connect returned=1 errno=0 state=error: certificate verify failed (OpenSSL::SSL::SSLError)"

I don't know if its related to my environment (MacOs). I can try a linux virtual machine if you want (in which bistro are you testing the app?)

Best Regards

joeyates commented 5 years ago

Hello @nihelmasell

The problem you're seeing relates to the CA certificates your Ruby is using. Maybe you could try this approach: https://www.engineyard.com/blog/ruby-ssl-error-certificate-verify-failed#solutions:

$ rvm osx-ssl-certs update all
nihelmasell commented 5 years ago

Hello @nihelmasell

The problem you're seeing relates to the CA certificates your Ruby is using. Maybe you could try this approach: https://www.engineyard.com/blog/ruby-ssl-error-certificate-verify-failed#solutions:

$ rvm osx-ssl-certs update all

Thanks! It works PS: It also worked your previous advise, using "ln -s /usr/local/opt/readline/lib/libreadline.8.0.dylib /usr/local/opt/readline/lib/libreadline.7.dylib" you can use the configuration wizard properly.

joeyates commented 5 years ago

Glad to hear it.