Sha256: 35ec7c42a3c5065adde47fbde0be7a3fb58d2ed661b631484432f17e706625df

Contents?: true

Size: 488 Bytes

Versions: 21

Compression:

Stored size: 488 Bytes

Contents

require 'sinatra/base'
require 'webrick'
require 'webrick/https'
require 'openssl'

options = {
    Port:            ARGV[1].to_i,
    Host:            ARGV[3],
    SSLEnable:       true,
    SSLVerifyClient: OpenSSL::SSL::VERIFY_NONE,
    SSLCertName:     [["CN", WEBrick::Utils::getservername]],
}

class HTTPSServer < Sinatra::Base

    get '/' do
        'HTTPS GET'
    end

end

server = ::Rack::Handler::WEBrick
trap( :INT ) { server.shutdown }

server.run( HTTPSServer, options )

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.6.1.2 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.6.1.1 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.6.1 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.6.0 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.5.1 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.5 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.4 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.3.2 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.3.1 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.3 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.2.1 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.2 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.1 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.0.6 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.0.5 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.0.4 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.0.3 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.0.2 spec/support/servers/arachni/http/proxy_server_https.rb
arachni-1.0.1 spec/support/servers/arachni/http/proxy_server_https.rb