My webzone

A place for John Bintz to ramble.

Net::IMAP SSL Verify Mode

Get this error doing IMAP stuff?

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

Try this:

Net::IMAP.new(host, :ssl => { :verify_mode => OpenSSL::SSL::VERIFY_NONE })