Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::X509::Store#add_file

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.4 · 3.3 · 3.1 · 3.0