Hi Ganey,

I am trying to use the JDK 1.4.x.  The instructions I
followed were from the Tomcat documentation. I do not
get error messages from either Tomcat or Apache. I
also do not get my jsp's on the port 80. I get the
"500".

Thanks
Herrick
--- "Ganey, Todd" <[EMAIL PROTECTED]> wrote:
> Well from the little information you provided I am
> not sure what is going
> on.  But from the fact that you are dynamically
> adding the provider I assume
> you are using JDK 1.3.x or earlier. If so where have
> you placed the JCE
> jars?  What is the error/exception you get when
> running the code?
> 
> Todd  
> 
> -----Original Message-----
> From: Ilhami Topaloglu
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 12, 2002 11:53 AM
> To: [EMAIL PROTECTED]
> Subject: JCE and Tomcat-4.0.3
> 
> 
> I wrote a pass phrase Encryption code that when I
> run it outside Tomcat env.
> it works fine, but when I run it on Tomcat, it
> fails.
> 
> this is part of the code:
> 
>     public static String encrypt(String passPhrase,
> String inputPhrase) {
> 
>         String algorithm = "PBEWithMD5AndDES";
>         byte[] salt = new byte[8];
>         int iterations = 20;
>         byte[] output = new byte[128];
> 
>         try {
>             // Register the security provider
>             Security.addProvider(new
> com.sun.crypto.provider.SunJCE());
> 
>             // Create a key from supplied passphrase
>             KeySpec keySpec = new
> PBEKeySpec(passPhrase.toCharArray());
> 
>             SecretKeyFactory secretKeyFactory =
>                
> SecretKeyFactory.getInstance(algorithm);
> 
>             SecretKey secretKey =
> secretKeyFactory.generateSecret(keySpec);
>                       .
>                       .
>                       .
> 
> It creates a PBE KeySpec, when the code gets to
> creating SecretKeyFactory,
> fails.
> 
> Since "PBEWithMD5AndDES" algorithm is part of the
> sunjce_provider.jar, I am
> assuming that Provider never gets registered.
> 
> anybody else run into similar issues? Any insight is
> appreciated.
> 
> Ilhami Topaloglu
> ePredix
> 
> 
> --
> To unsubscribe:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands:
> <mailto:[EMAIL PROTECTED]>
> Troubles with the list:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> --
> To unsubscribe:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands:
> <mailto:[EMAIL PROTECTED]>
> Troubles with the list:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to