method

parse_openssl

parse_openssl(str, template=OBJECT_TYPE_TEMPLATE)
public

No documentation available.

# File ext/openssl/lib/openssl/x509.rb, line 146
        def parse_openssl(str, template=OBJECT_TYPE_TEMPLATE)
          if str.start_with?("/")
            # /A=B/C=D format
            ary = str[1..-1].split("/").map { |i| i.split("=", 2) }
          else
            # Comma-separated
            ary = str.split(",").map { |i| i.strip.split("=", 2) }
          end
          self.new(ary, template)
        end