From: "usa (Usaku NAKAMURA)" <usa@...> Date: 2014-01-09T14:34:15+09:00 Subject: [ruby-core:59654] [ruby-trunk - Bug #9341] IMAPTest#test_imaps_with_ca_file test failed after 2014-01-01. Issue #9341 has been updated by usa (Usaku NAKAMURA). Backport changed from 1.9.3: REQUIRED, 2.0.0: DONE, 2.1: REQUIRED to 1.9.3: DONE, 2.0.0: DONE, 2.1: DONE backported into ruby_1_9_3 at r44533. and, seems to be backported into ruby_2_1 at r44528. ---------------------------------------- Bug #9341: IMAPTest#test_imaps_with_ca_file test failed after 2014-01-01. https://bugs.ruby-lang.org/issues/9341#change-44182 Author: phasis68 (Heesob Park) Status: Closed Priority: Normal Assignee: shugo (Shugo Maeda) Category: test Target version: current: 2.2.0 ruby -v: ruby 2.2.0dev (2014-01-02 trunk 44483) [x64-mswin64_100] Backport: 1.9.3: DONE, 2.0.0: DONE, 2.1: DONE The test IMAPTest#test_imaps_with_ca_file failed with the following error after 2014-01-01 on all platforms in rubyci.org IMAPTest#test_imaps_with_ca_file [D:/tmp/mswin-build20140102-4508-1arnv64/ruby/test/net/imap/test_imap.rb:74]: Exception raised: <#<OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed>>. IMAPTest#test_starttls: OpenSSL::SSL::SSLError: SSL_write: certificate verify failed D:/tmp/mswin-build20140102-4508-1arnv64/ruby/.ext/common/openssl/buffering.rb:326:in `syswrite' D:/tmp/mswin-build20140102-4508-1arnv64/ruby/.ext/common/openssl/buffering.rb:326:in `do_write' D:/tmp/mswin-build20140102-4508-1arnv64/ruby/.ext/common/openssl/buffering.rb:423:in `print' D:/tmp/mswin-build20140102-4508-1arnv64/ruby/lib/net/imap.rb:1225:in `put_string' D:/tmp/mswin-build20140102-4508-1arnv64/ruby/lib/net/imap.rb:1197:in `block in send_command' D:/tmp/mswin-build20140102-4508-1arnv64/ruby/lib/monitor.rb:211:in `mon_synchronize' D:/tmp/mswin-build20140102-4508-1arnv64/ruby/lib/net/imap.rb:1192:in `send_command' D:/tmp/mswin-build20140102-4508-1arnv64/ruby/lib/net/imap.rb:368:in `logout' D:/tmp/mswin-build20140102-4508-1arnv64/ruby/test/net/imap/test_imap.rb:524:in `starttls_test' D:/tmp/mswin-build20140102-4508-1arnv64/ruby/test/net/imap/test_imap.rb:113:in `test_starttls' I found the cause of this failure is due to the expired certificate validity period. The current validity period is defined as Validity Not Before: Dec 23 10:23:52 2010 GMT Not After : Jan 1 10:23:52 2014 GMT Found in test/net/imap/server.crt and test/net/imap/cacert.pem -- http://bugs.ruby-lang.org/