Project

General

Profile

Actions

Bug #12687

closed

OpenSSL::X509::Store wont load certificates from set_default_paths

Added by bararchy (Bar Hofesh) over 8 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
"2.2.5" revision: 54072
[ruby-core:76962]

Description

Setting up a new instance of OpenSSL::X509::Store, and setting "set_default_paths" will not actually import any certificates into Store.

Environment: Ubuntu 14.04

File.dirname OpenSSL::Config::DEFAULT_CONFIG_FILE => "/usr/lib/ssl"

use the store to verify a certificate (store.verify(ssl_certificate)) returns false

After manually doing:

Dir.glob("/usr/lib/ssl/certs/*").each do |cert| begin cert_store.add_file cert rescue Exception next end end

the verify returns true.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0