Flowdock
method

alt_name_or_x509_entry

Importance_0
v2_4_6 - Show latest stable - 0 notes - Class: Security
alt_name_or_x509_entry(certificate, x509_entry) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/security.rb, line 394
  def self.alt_name_or_x509_entry certificate, x509_entry
    alt_name = certificate.extensions.find do |extension|
      extension.oid == "#{x509_entry}AltName"
    end

    return alt_name.value if alt_name

    certificate.send x509_entry
  end
Register or log in to add new notes.