Add more check to debug failures

This commit is contained in:
Kazuhiro NISHIYAMA 2022-06-30 15:36:34 +09:00
parent a5420b6fc1
commit 4b1f337ef2
No known key found for this signature in database
GPG Key ID: 262ED8DBB4222F7A

View File

@ -15,7 +15,7 @@ describe "OpenSSL::X509::Name.verify" do
cert.sign key, OpenSSL::Digest.new('SHA1')
store = OpenSSL::X509::Store.new
store.add_cert(cert)
store.verify(cert).should == true
[store.verify(cert), store.error, store.error_string].should == [true, 0, "ok"]
end
it "returns false for an expired certificate" do