You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Brill Pappin <br...@jmonkey.com> on 1999/12/15 01:22:00 UTC

SSL in Tomcat

Sun has added an export grade SSL library (reference implementation)...
Is anyone working on implementing SSL in Tomcat?

See:
http://java.sun.com/products/jsse/

- Brill Pappin
  www.jmonkey.com


Re: SSL in Tomcat

Posted by Brian Behlendorf <br...@apache.org>.
On Wed, 15 Dec 1999, Serge Knystautas wrote:
> I'm betting this is stalled in part because the U.S. is/was about to
> overhaul the restrictions.  Several months ago, the Dept. of Commerce
> announced that on Dec. 15 they would publish/make a statement that they
> are effectively removing export regulations, in theory at least.  It's
> hard to believe people so out of touch with reality will suddenly do a
> 100% about face, but let's hope.

A friend noted that it was probably because they see the writing on the
wall, that the Bernstein case will probably go to the Supremes, and
probably stands a good chance of upholding the decision made in the lower
courts that regulating crypto source is unconstitutional.  So the US govt
has two options: wait for the ruling and potentially lose *all* ability to
regulate the export of crypto software, or cause the Bernstein case to
become moot by declaring that source code crypto is no longer a concern of
theres, thereby preserving their ability to regulate commercial
crypto software.

However, the draft regulations that were released for public comment (I
lost the URL, I'm sure someone has it) don't automatically apply that same
liberalization to things like hooks in crypto, or the issue of an
international developer checking code into a US-based CVS tree (or
vice-versa).  We'll have to wait to see how those are handled.

Presuming no change in the regs, though, SSL support in Tomcat will have
to be accomplished by front-ending JSSE (or whatever you'd like to us)
with a *non-crypto-specific API*.

	Brian




Re: SSL in Tomcat

Posted by Serge Knystautas <se...@lokitech.com>.
I'm betting this is stalled in part because the U.S. is/was about to
overhaul the restrictions.  Several months ago, the Dept. of Commerce
announced that on Dec. 15 they would publish/make a statement that they
are effectively removing export regulations, in theory at least.  It's
hard to believe people so out of touch with reality will suddenly do a
100% about face, but let's hope.

Last week they announced they've delayed the publishing until January
15.  Apparently they're still trying to work out the details of this
removal of restrictions, and big companies (with money to lobby) are
doing their best to make sure they do remove as much of the export
restrictions.  I'm hoping that it will mean that packages such as JSSE
are more easily distributable, and without ridiculously low key length
restrictions.  Can't promise anything, but that's the news we see here
(I live in the Washington DC suburbs...)

Serge Knystautas
Loki Technologies
http://www.lokitech.com/

Wong Kok Wai wrote:
> 
> > Brill Pappin wrote:
> > >
> > > Sun has added an export grade SSL library (reference implementation)...
> > > Is anyone working on implementing SSL in Tomcat?
> > >
> 
> Unless I got mixed up with another mailing list, this was recently discussed
> and Cryptix has proposed to implement an open-source JSSE outside of US.

Re: SSL in Tomcat

Posted by Ben Laurie <be...@algroup.co.uk>.
Brill Pappin wrote:
> 
> Yes.. I think I remember something like that... did that ever get going?

Its about to.

Cheers,

Ben.

--
SECURE HOSTING AT THE BUNKER! http://www.thebunker.net/hosting.htm

http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi

Re: SSL in Tomcat

Posted by Brill Pappin <br...@jmonkey.com>.
Yes.. I think I remember something like that... did that ever get going?

- Brill Pappin
  www.jmonkey.com

  "The sooner you fall behind,
  the more time you will have
  to catch up."

----- Original Message -----
From: Wong Kok Wai <wo...@pacific.net.sg>
To: <ge...@jakarta.apache.org>
Sent: Wednesday, December 15, 1999 4:19 PM
Subject: Re: SSL in Tomcat


>
>
>
> > Brill Pappin wrote:
> > >
> > > Sun has added an export grade SSL library (reference
implementation)...
> > > Is anyone working on implementing SSL in Tomcat?
> > >
>
> Unless I got mixed up with another mailing list, this was recently
discussed
> and Cryptix has proposed to implement an open-source JSSE outside of US.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
>


Re: SSL in Tomcat

Posted by Wong Kok Wai <wo...@pacific.net.sg>.


> Brill Pappin wrote:
> >
> > Sun has added an export grade SSL library (reference implementation)...
> > Is anyone working on implementing SSL in Tomcat?
> >

Unless I got mixed up with another mailing list, this was recently discussed
and Cryptix has proposed to implement an open-source JSSE outside of US.


Tomcat Start/Stop UI

Posted by Brill Pappin <br...@jmonkey.com>.
I've been working on a little bit of code for starting/stopping Tomcat, in a
UI environment...
Its still a little rough, and the bounce command does not work properly
yet... but its well on the way.
If people like it, I'd like to add bean support to the Startup and Shutdown
classes so external applications can receive status events etc, from
commands.

Download it from:
http://www.jmonkey.com/~bpappin/tomcat_control_src.jar

Just add it to your tomcat source tree in org.apache.tomcat.shell.ctrl, and
run Ant.
The command is: java org.apache.tomcat.shell.ctrl.Tomcat
and any options sent to Tomcat will be passed to Startup/Shutdown.

I've included the bat file I use to start it.

I don't know if anyone has seen it, but JRun uses something like this to
start and stop on windows... it uses a native portion to sit in the task
tray, instead of the task bar. On NT the UI communicates with the  server as
a service, on windows 95/98, its a simple application.

BTW- I have no idea how it looks on other systems besides windows, I haven't
tested it anywhere.

- Brill Pappin
  www.jmonkey.com

  "The sooner you fall behind,
  the more time you will have
  to catch up."


Re: SSL in Tomcat

Posted by Jean-Luc Rochat <jn...@cybercable.fr>.
Brill Pappin wrote:
> 
> This is true, however, tomcat can run on its own, and there will always be
> people like me, that want to remove the native portion of the thing.
> 
> There is also the option of writing new services, that may not be HTTP based
> at all.
> 
> - Brill Pappin

> > IMO this would be a bad idea.
> >
> > Use the SSL support in Apache, more robust code and faster.
> >
> > Kevin

I do agree with Kevin, but I can also understand Brill Pappin.

But my choice for a heavy loaded production deployment would be based on
a n-tier model, with Apache as front-end, and the Servlet engine on
another (or more than one) machine.
example: *BSD is maybe the best choice for Apache, and Solaris (or
whatever you want, but not BSD now) for the servlet engine. And your
mainframe/cluster for RDBMS. 
That's more secure, more efficient. (IMHO).

Jean-Luc

Re: SSL in Tomcat

Posted by Brill Pappin <br...@jmonkey.com>.
This is true, however, tomcat can run on its own, and there will always be
people like me, that want to remove the native portion of the thing.

There is also the option of writing new services, that may not be HTTP based
at all.


- Brill Pappin
  www.jmonkey.com

  "The sooner you fall behind,
  the more time you will have
  to catch up."

----- Original Message -----
From: Kevin A. Burton <bu...@relativity.yi.org>
To: <ge...@jakarta.apache.org>
Sent: Wednesday, December 15, 1999 1:42 PM
Subject: Re: SSL in Tomcat


> Brill Pappin wrote:
> >
> > Sun has added an export grade SSL library (reference implementation)...
> > Is anyone working on implementing SSL in Tomcat?
> >
> > See:
> > http://java.sun.com/products/jsse/
> >
> > - Brill Pappin
> >   www.jmonkey.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: general-help@jakarta.apache.org
>
> IMO this would be a bad idea.
>
> Use the SSL support in Apache, more robust code and faster.
>
> Kevin
>
> --
> Kevin A Burton
> Senior Software Engineer
> Kendara Inc
> http://www.kendara.com
> Mobile:  408-910-6145
> Linux - You *will* be assimilated
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
>


Re: SSL in Tomcat

Posted by Erik Bruchez <eb...@unet.urbanet.ch>.
> The next question is the SSL performance using JSSE.  Is the core
> en/de-cryption in native code or in Java?  If it is in Java, then
> using the native code SSL implementation in Apache may be faster.

The reference implementation is 100% Java. I don't have numbers to
back that up yet, but the https handler *feels* very slow (Windows and
Linux). Using the JSSE API as a front-end to a native crypto
implementation might be a reasonable portability / performance
compromise.

-Erik

Re: SSL in Tomcat

Posted by David Brownell <da...@pacbell.net>.
"Preston L. Bannister" wrote:
> 
> > Brill Pappin wrote:
> > > Sun has added an export grade SSL library (reference implementation)...
> > > Is anyone working on implementing SSL in Tomcat?
> > >
> > > See:
> > > http://java.sun.com/products/jsse/

I was glad to see that code shipping after a two year delay!

 
> From: Kevin A. Burton
> > IMO this would be a bad idea.
> >
> > Use the SSL support in Apache, more robust code and faster.

Were you just saying that, or did you actually measure something?


Robustness in Java is high; certainly it's rarely something to ding
Java on (outside of AWT; not an issue here :).

And the code on which the JSSE package was based has been used in
several dozen products from Sun and its partners; robustness was
a top requirement.  I'll give the benefit of the doubt that it
didn't get broken when it was turned into JSSE, even if politics
gets it called a "reference" (no longer "product") implementation.

Leaving "faster" ... which I'll resist the urge to talk about
in detail (wouldn't want to get in trouble with J. Edgar Freeh
of the FBI now would I?) but I'll say that the only real issue
should be the hash functions, which any JVM will put into native
code if it's smart.  (Java does really badly at bit diddling code
like hash functions.  SSL uses hashes a lot.)  
 

In short, I'd not be quick to assume that adding context switches
(to get at Apache's SSL indirectly) should be a win.


> 	...
 

> The next question is the SSL performance using JSSE.  Is the core
> en/de-cryption in native code or in Java?  If it is in Java, then
> using the native code SSL implementation in Apache may be faster.

I think the crypto got modified so that it was 100% Pure Java, but
see my comments above re what that might mean.  I'd believe numbers
rather than speculation; RC4 in Java isn't going to be a performance
bottleneck, unlike per-record hashes in Java.  The bignum library
used by the JVM (in 1.1 and 1.2, native code) was pretty much the
same one SSLeay (OpenSSL) used a while back, though using JNI and
format conversions to talk to it wasn't fast.


Also of relevance:  alternative Java implementations, in particular
GCJ/LIBGCJ (Cygnus's cleanroom Java, in the GCC framework) are now
starting to look attractive.  I recently got a substantial chunk of
Java code running with GCJ, and it ran in 2/3 the time that Sun's
latest Linux JDK (1.2.2 RC1) took.  That means that it's only going
to get even faster; GCJ is more or less alpha level code now.

(So I'll want to compile Tomcat with GCJ and compare that to Apache,
after Tomcat gets more HTTP smarts ... ;-)

- Dave

RE: SSL in Tomcat

Posted by "Preston L. Bannister" <pr...@home.com>.
> Brill Pappin wrote:
> > Sun has added an export grade SSL library (reference implementation)...
> > Is anyone working on implementing SSL in Tomcat?
> >
> > See:
> > http://java.sun.com/products/jsse/

From: Kevin A. Burton
> IMO this would be a bad idea.
>
> Use the SSL support in Apache, more robust code and faster.

True if you are serving up a fair amount of plain HTML or other non-servlet-generated pages.  Not so clear if the majority of your
content is generated through the servlet engine.

If almost all your traffic goes through servlets, the indirection from Apache to Tomcat may just slow you down.  In which case
running Jakarta standalone may yield better performance.

The next question is the SSL performance using JSSE.  Is the core en/de-cryption in native code or in Java?  If it is in Java, then
using the native code SSL implementation in Apache may be faster.


Re: SSL in Tomcat

Posted by "Kevin A. Burton" <bu...@relativity.yi.org>.
Brill Pappin wrote:
> 
> Sun has added an export grade SSL library (reference implementation)...
> Is anyone working on implementing SSL in Tomcat?
> 
> See:
> http://java.sun.com/products/jsse/
> 
> - Brill Pappin
>   www.jmonkey.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org

IMO this would be a bad idea.  

Use the SSL support in Apache, more robust code and faster.

Kevin

-- 
Kevin A Burton
Senior Software Engineer
Kendara Inc
http://www.kendara.com
Mobile:  408-910-6145
Linux - You *will* be assimilated