Project

General

Profile

Actions

Bug #9341

closed

IMAPTest#test_imaps_with_ca_file test failed after 2014-01-01.

Added by phasis68 (Heesob Park) almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.2.0dev (2014-01-02 trunk 44483) [x64-mswin64_100]
[ruby-core:59459]

Description

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0