Method: Gem::Security::TrustDir#name_path

Defined in:
lib/rubygems/security/trust_dir.rb

#name_path(name) ⇒ Object

Returns the path to the trusted certificate with the given ASN.1 name



72
73
74
75
76
# File 'lib/rubygems/security/trust_dir.rb', line 72

def name_path(name)
  digest = @digester.hexdigest name.to_s

  File.join @dir, "cert-#{digest}.pem"
end