End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Security::TrustDir#load_certificate
load_certificate(certificate_file)
lib/rubygems/security/trust_dir.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/security/trust_dir.rb, line 81
def load_certificate(certificate_file)
pem = File.read certificate_file
OpenSSL::X509::Certificate.new pem
end
Loads the given certificate_file
See also
#issuer_of
#name_path
#each_certificate
#trust_cert
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0