Method: WEBrick::GenericServer#ssl_context

Defined in:
lib/webrick/ssl.rb

#ssl_contextObject

SSL context for the server when run in SSL mode



153
154
155
156
157
158
159
160
161
# File 'lib/webrick/ssl.rb', line 153

def ssl_context # :nodoc:
  @ssl_context ||= begin
    if @config[:SSLEnable]
      ssl_context = setup_ssl_context(@config)
      @logger.info("\n" + @config[:SSLCertificate].to_text)
      ssl_context
    end
  end
end