extract_name(cert)
Extracts the full name of cert. If the certificate has a subjectAltName this value is preferred, otherwise the subject is used.
# File lib/rubygems/security/signer.rb, line 70 def extract_name cert # :nodoc: subject_alt_name = cert.extensions.find { |e| 'subjectAltName' == e.oid } if subject_alt_name then /\Aemail:/ =~ subject_alt_name.value $' || subject_alt_name.value else cert.subject end end