Project

General

Profile

Bug #12687

Updated by bararchy (Bar Hofesh) over 8 years ago

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 user 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. 

Back