Method: Gem::Security::Signer#load_cert_chain
- Defined in:
- lib/rubygems/security/signer.rb
#load_cert_chain ⇒ Object
Loads any missing issuers in the cert chain from the trusted certificates.
If the issuer does not exist it is ignored as it will be checked later.
125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/rubygems/security/signer.rb', line 125 def load_cert_chain # :nodoc: return if @cert_chain.empty? while @cert_chain.first.issuer.to_s != @cert_chain.first.subject.to_s do issuer = Gem::Security.trust_dir.issuer_of @cert_chain.first break unless issuer # cert chain is verified later @cert_chain.unshift issuer end end |