def get_value(section, key)
      if section.nil?
        raise TypeError.new('nil not allowed')
      end
      section = 'default' if section.empty?
      get_key_string(section, key)
    end
def get_value(section, key)
      if section.nil?
        raise TypeError.new('nil not allowed')
      end
      section = 'default' if section.empty?
      get_key_string(section, key)
    end
Creates an instance of OpenSSL's configuration class.

 This can be used in contexts like OpenSSL::X509::ExtensionFactory.config=

 If the optional +filename+ parameter is provided, then it is read in and
 parsed via #parse_config.

 This can raise IO exceptions based on the access, or availability of the
 file. A ConfigError exception may be raised depending on the validity of
 the data being configured.


 Gets the value of +key+ from the given +section+

 Given the following configurating file being loaded:

   config = OpenSSL::Config.load('foo.cnf')
     #=> #<OpenSSL::Config sections=["default"]>
   puts config.to_s
     #=> [ default ]
     #   foo=bar

 You can get a specific value from the config if you know the +section+
 and +key+ like so:

   config.get_value('default','foo')
     #=> "bar"