Sha256: 599e23b69e0ff1a52b2721ba9e6ebfbdf65dd8f9518d5041b69878909c0b8011
Contents?: true
Size: 708 Bytes
Versions: 86
Compression:
Stored size: 708 Bytes
Contents
require 'openssl' require 'webrick' require 'webrick/https' require File.join(File.dirname(__FILE__), 'basic') key_file = File.join(File.dirname(__FILE__), '..', 'data', 'excon.cert.key') cert_file = File.join(File.dirname(__FILE__), '..', 'data', 'excon.cert.crt') Rack::Handler::WEBrick.run(Basic, { :Port => 8443, :SSLCertName => [["CN", WEBrick::Utils::getservername]], :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_PEER|OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT, })
Version data entries
86 entries across 84 versions & 5 rubygems