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

Version Path
excon-0.64.0 tests/rackups/ssl.ru
excon-0.63.0 tests/rackups/ssl.ru
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/excon-0.62.0/tests/rackups/ssl.ru
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/excon-0.62.0/tests/rackups/ssl.ru
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/excon-0.62.0/tests/rackups/ssl.ru
excon-0.62.0 tests/rackups/ssl.ru
excon-0.61.0 tests/rackups/ssl.ru
excon-0.60.0 tests/rackups/ssl.ru
excon-0.59.0 tests/rackups/ssl.ru
excon-0.58.0 tests/rackups/ssl.ru
excon-0.57.1 tests/rackups/ssl.ru
excon-0.57.0 tests/rackups/ssl.ru
excon-0.56.0 tests/rackups/ssl.ru
excon-0.55.0 tests/rackups/ssl.ru
excon-0.54.0 tests/rackups/ssl.ru
excon-0.53.0 tests/rackups/ssl.ru
excon-0.52.0 tests/rackups/ssl.ru
excon-0.51.0 tests/rackups/ssl.ru
excon-0.50.1 tests/rackups/ssl.ru
excon-0.50.0 tests/rackups/ssl.ru