Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

OpenSSL::X509::Store#add_file

(::String file) -> self
store.add_file(file) → self

Adds the certificates in file to the certificate store. file is the path to the file, and the file contains one or more certificates in PEM format concatenated together.

See also the man page X509_LOOKUP_file(3).

See also #add_crl #add_path #add_cert #clear_flags also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0