OpenSSL::X509::Store#set_default_paths itself does not import any certificates but configures the store to load from OpenSSL::X509::DEFAULT_CERT_{DIR,FILE} as needed.
If you added a custom certificate to the directory, you have to run c_rehash so that OpenSSL can find it.
OpenSSL::X509::Store#set_default_paths itself does not import any certificates but configures the store to load from OpenSSL::X509::DEFAULT_CERT_{DIR,FILE} as needed.
If you added a custom certificate to the directory, you have to run c_rehash so that OpenSSL can find it.
I see, is there a way to call c_rehash from Ruby ?