Method: OpenSSL::X509::Name::RFC2253DN.expand_hexstring

Defined in:
lib/openssl/x509.rb

.expand_hexstring(str) ⇒ Object



91
92
93
94
95
96
# File 'lib/openssl/x509.rb', line 91

def expand_hexstring(str)
  return nil unless str
  der = str.gsub(HexPair){$&.to_i(16).chr }
  a1 = OpenSSL::ASN1.decode(der)
  return a1.value, a1.tag
end