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

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