Re: SSL/https - How to configure Tomcat?

From: Sebastian Scheid (mynewsgroup_at_web.de)
Date: 02/05/05


Date: Sat, 5 Feb 2005 10:41:16 +0100


"Ryan Stewart" <zzanNOtozz@gSPAMo.com> schrieb im Newsbeitrag
news:seCdneHGotUAlJnfRVn-qg@texas.net...
> "Sebastian Scheid" <mynewsgroup@web.de> wrote in message
> news:36hgb5F52g4i9U1@individual.net...
>> "Ryan Stewart" <zzanNOtozz@gSPAMo.com> schrieb im Newsbeitrag
>> news:OdudnRUx_OkJqJ3fRVn-rA@texas.net...
> [...]
>>> SSL is not an authentication method.
>>
>> That's wrong. One aspect of SSL is authentication.
>>
> You mean it's right to say that SSL is an authentication method? I don't
> think I'd agree with that. But if you want to be more specific: SSL is not
> a container managed authentication method.
>
> [...]
>>>> Is SSL security only achieved through <auth-method>FORM</auth-method>
>>>> (i.e. through custom login forms) ONLY?
> [...]
>>> User authentication is not necessary for SSL.
>>
>> But if you WANT authentication, SSL supports it.
>>
> Again, the container supports these forms of authentication. SSL
> authentication is a different concept, though the two may be tied
> together.

Ok, there are different aspects of authentication: BASIC auth is part of
HTTP. The data is encrypted using Base64 which is not secure. The FORM auth
method (part of Servlet Spec?) does not encrypt any data. Plain text is
sent. By enabling SSL ALL traffic is secure. So BASIC and FORM auth still
work the same way as without SSL but cannot be read by others.

The problem with these kinds of authentication is that though the user sends
confidential data over a secure connection he has no guarantee the receiver
(=server) is authentic (=> could be the bad guy's server). Now SSL's
authentication comes to play: SSL uses certificates to authenticate someone
(server or client). Server-Authentication using a certificate gives the user
the guarantee, the server is authentic. Client authentication (over SSL!) is
seldom used.

So, to achieve authentication of the user (=client) SSL doesn't help you (if
you don't want the user to install his own certificate). You can use BASIC
or FORM auth.
If you want to protect the transmission of the user's confidential data, you
have to encrypt it using SSL.
If you want to make the user trust in your server, SSL helps you with
server-authentication.

BTW the last two steps are can be adopted by tomcat, but if you use tomcat
in combination with a webserver like apache, this webserver should care
about SSL.

For further information see the J2EE tutorial
http://java.sun.com/j2ee/1.4/docs/tutorial-update2/doc/Security5.html#wp182253 .

I think you meant this, Ryan. I hope this summarize is correct and helps
Anks building secure webapps :-)

Regards
Sebastian



Relevant Pages

  • Re: OWA 2003 w/ Smart Card Authentication.
    ... Whether or not authentication will succeed is completely dictated by IIS ... how SSL certificate auth handshake happens. ... FE servers must be Windows Server 2003. ... Server's SSL certificate must be configured on root of v-server via the ...
    (microsoft.public.exchange.connectivity)
  • Re: OWA 2003 w/ Smart Card Authentication.
    ... Whether or not authentication will succeed is completely dictated by ... how SSL certificate auth handshake happens. ... FE servers must be Windows Server 2003. ... Server's SSL certificate must be configured on root of v-server via the ...
    (microsoft.public.exchange.connectivity)
  • Re: OWA 2003 w/ Smart Card Authentication.
    ... Whether or not authentication will succeed is completely dictated by ... how SSL certificate auth handshake happens. ... FE servers must be Windows Server 2003. ... Server's SSL certificate must be configured on root of v-server via ...
    (microsoft.public.exchange.connectivity)
  • Re: OWA 2003 w/ Smart Card Authentication.
    ... Exchange 2003 server via ActivSync. ... the IIS certificate. ... Whether or not authentication will succeed is completely dictated by ... Server's SSL certificate must be configured on root of v-server via ...
    (microsoft.public.exchange.connectivity)
  • Re: Cannot find server?
    ... Possibly your ISP is using the outdated and deprecated 'pop before smtp' ... authentication method. ... > Subject: Re: Cannot find server? ...
    (microsoft.public.mac.office.entourage)