Skip to content
class method

OpenSSL::Config.new

(?::_ToS filename) -> ::OpenSSL::Config
Config.new(filename) → OpenSSL::Config

Creates an instance of OpenSSL::Config from the content of the file specified by filename.

This can be used in contexts like OpenSSL::X509::ExtensionFactory.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.

See also .parse .parse_config also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0