Sorry, that one line reply of mine is about the limit of my knowledge.
Looking at the SSL docs for Tomcat 5, it has a section on configuring JSSE -
but it says if you are using Java 1.4.x you can skip the whole step. It also
says in the troubleshooting at the end that if you get
"java.security.NoSuchAlgorithmException" errors  then its because the JVM
cannot find the JSSE JAR files.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html

I don't know if these are any use, but I found these in the Tomcat User
List:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg119351.html
http://www.mail-archive.com/[EMAIL PROTECTED]/msg102382.html


Niall

----- Original Message ----- 
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, March 27, 2004 7:59 AM
Subject: Re: Tomcat -- JSP -- KeyPairGenerator -- Security Exception


> Also, Niall, from the same j2se I can use the KeyPairGenerator for
> Diffie-Hellman by running main through a command line, but not through
> Tomcat.  So, my reasoning is that it has to be Tomcat?  No?  I know that
> through Tomcat it seems to access SunJSSE but not through the command
> line.  What is going on is beyond me at the present.  I don't know enough
> about JSSE to sort this out, I think.  I may be wrong about the problem,
> however.
>
> At 10:37 PM 3/26/2004, you wrote:
> >I get the same problem when tomcat uses Java 1.3.1_04 - i.e. works for
RSA,
> >but not DH - when I switch to Java 1.4.2_01, everything is OK.
> >
> >Niall
> >
> >----- Original Message -----
> >From: "Michael McGrady" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Saturday, March 27, 2004 4:56 AM
> >Subject: Re: Tomcat -- JSP -- KeyPairGenerator -- Security Exception
> >
> >
> > > I find that Tomcat has the JCE.jar without a KeyPairGenerator class.
Yet,
> > > when I go for KeyPairGenerator.getInstance("RSA") it works but
> > > KeyPairGenerator.getInstance("DH") does not.  Both jce.jar and
> > > sunjce_provider.jar have DH keys.  I just cannot figure what is going
on
> > > here.  sunjce_provider.jar has KeyPairGenerator in jre/lib/ext/.
HELP!
> >LOL!
> > >
> > > At 08:14 PM 3/26/2004, you wrote:
> > > >When I am using Tomcat I get a security exception when I try to
access a
> > > >java.security.KeyPairGenerator for a Diffie-Hellman key pair.  I
don't
> >get
> > > >it with other servers.  Anyone know why this is?
> > > >
> > > >
> > > >java.security.NoSuchAlgorithmException: DH KeyPairGenerator not
available
> > > >         java.security.Security.getEngineClassName(Security.java:583)
> > > >         java.security.Security.getEngineClassName(Security.java:594)
> > > >         java.security.Security.getImpl(Security.java:1043)
> > > >
> >java.security.KeyPairGenerator.getInstance(KeyPairGenerator.java:146)
> > > >
> >org.apache.jsp.TEST_KEYPAIR_jsp._jspService(TEST_KEYPAIR_jsp.java:57)
> > > >
> >org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> > > >         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> > > >
> > >
> >
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
> >204)
> > > >
> > >
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> > > >
> >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> > > >         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to