Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. 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 #flags= also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0