You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require'net/imap'imap=Net::IMAP.new('imap.zuhause.org',993,true)
__END__
OpenSSL::SSL::SSLError: certificate verify failed
from org/jruby/ext/openssl/SSLSocket.java:217:in `connect'
from /usr/home/bruce/jruby-9.1.5.0/lib/ruby/stdlib/net/imap.rb:1492:in `start_tls_session'
from /usr/home/bruce/jruby-9.1.5.0/lib/ruby/stdlib/net/imap.rb:1085:in `initialize'
from (irb):2:in `<eval>'
from org/jruby/RubyKernel.java:995:in `eval'
from org/jruby/RubyKernel.java:1296:in `loop'
from org/jruby/RubyKernel.java:1115:in `catch'
from org/jruby/RubyKernel.java:1115:in `catch'
from /home/bruce/jruby-9.1.5.0/bin/irb:13:in `<main>'
@bgalbrecht Thanks for the simple example using your imap server! I don't suppose you could come up with a standalone reproduction that doesn't require us to have a separate server running, could you? It would definitely help us move forward on fixing this.
This stopped working when I replaced a certificate for just imap.zuhause.org with a certificate for zuhause.org with about a half-dozen subject alternative names including imap.zuhause.org.
I updated the cacerts file for my openjdk8 jre that included a trusted cert for ISRG Root X1 Valid Certificate, which signed the Let's Encrypt root certificate, and it's working now. Supposedly version 8u101 should have this cert in the cacerts file but I had to add it to get it to work.
MRI successfully connects to the server:
The text was updated successfully, but these errors were encountered: