Re: webrick, ssl and non-ssl on the same port



On 8/10/06, Francis Cianfrocca <garbagecat10@xxxxxxxxx> wrote:
On 8/10/06, Pavel Smerk <smerk@xxxxxxxxxx> wrote:
> Hello all,
>
> I have sslized webrick server, but I'd like to have some parts of server
> accessible even without ssl. I've tried to search web and groups, but
> I haven't found anything --- any suggestions, how to get ssl and nonssl
> servlets on the same port?
>
> Thanks in advance,
>
> P.
>
>

what I think you're proposing is not usually done for web sites. Do
you want to open a server port and have it automatically detect an
SSL/TLS client-hello so you can do an SSL handshake if present, and
simply serve the connection with no encryption otherwise? If you do
that, then how do you ensure that people will use encryption on the
sensitive pages? It's a lot of additional logic to make that happen.
Just use two ports.

The page is either available through http or https - these are two
different URLs. So the request should get to the right type of
service.

Of course it is simpler to use two ports (and it is the default
anyway, you would have to use a port number with either http or https
to get them use the same port). But it is an interesting idea
nontheless.

Thanks

Michal

.



Relevant Pages

  • Re: Activesync / Airsync - Alternative Ports
    ... Setup a reverse HTTP proxy. ... Another idea is to use the PPTP capabilities of a Windows Server to allow ... Satellite - Cisco Firewall - Exchange Server ... So on the server side you would configure the port 80 to redirect to ...
    (microsoft.public.pocketpc.activesync)
  • Re: 2003 Ent Mutimedia Server
    ... Set Up Windows Media Services 9 Series to Use HTTP Streaming on Port ... WMS does not enable the WMS HTTP Server Control ...
    (microsoft.public.windows.server.general)
  • Re: Cannot open port 80 for http access
    ... SBS is its own beast. ... either the port on the "Welcome to SBS server" so that http works. ... You really do not want to open port 80. ...
    (microsoft.public.windows.server.networking)
  • Re: (New Subject): How to eliminate prompt for credentials when using RPC over HTTP
    ... the microsoft article that showed how to set up RPC over HTTP on a single ... >mentions several registry changes to be made on the server. ... >>how to set it up on the SBS 2003, and it turned out to simply automate ... >> certificate to enable SSL) uses port 443 for the encrypted SSL traffic. ...
    (microsoft.public.windows.server.sbs)
  • Re: Understanding NAT, Firewalls, TCP/IP
    ... Don't use port 80 unless you're connecting to http servers. ... A hardware firewall ... just my own very simple server that won't require ...
    (comp.lang.java.programmer)