Sha256: aa65a05332b6efa6444f473ef3980bac172f79b08e6208261327c2647266c71a
Contents?: true
Size: 616 Bytes
Versions: 41
Compression:
Stored size: 616 Bytes
Contents
require 'openssl' require 'webrick' require 'webrick/https' require File.join(File.dirname(__FILE__), 'basic') key_file = File.join(File.dirname(__FILE__), '..', 'data', '127.0.0.1.cert.key') cert_file = File.join(File.dirname(__FILE__), '..', 'data', '127.0.0.1.cert.crt') Rack::Handler::WEBrick.run(Basic, { :Port => 9443, :SSLEnable => true, :SSLPrivateKey => OpenSSL::PKey::RSA.new(File.open(key_file).read), :SSLCertificate => OpenSSL::X509::Certificate.new(File.open(cert_file).read), :SSLCACertificateFile => cert_file, :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE, })
Version data entries
41 entries across 39 versions & 4 rubygems