Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 23, 2012, 10:40:25 PM

Pages: [1]   Go Down
  Print  
Author Topic: RSA Encryption and bouncycastle  (Read 26657 times)
iowatiger08
Newbie
*
Offline Offline

Posts: 1


« on: June 21, 2011, 08:38:16 AM »

I have been able to run decryption and encryption locally using the bouncycastle jars. I have generated keys that I want to put the public key a client (Java and Android) and the private key in a web service. I have been able to encrypt and encoded a message and send the encrypted message to the webservice (on my hosted service by LP), but the webservice decryption fails with a bogus FileNotFoundException on the line

BouncyCastleProvider bc = new BouncyCastleProvider();

or

Security.addProvider(new BouncyCastleProvider());

The bcprov-ext-jdk14-146.jar and the bcprov-jdk14-146.jar is included in the web-inf lib directory.

Is there something I can do programmatic to enable this or does Lunarpages have to do something?

**I wouldnt even get a stacktrace until I tried to use the Sun JCE provider() which says access denied. Is there anything that can be done to use the bouncycastle provider?  This is a show stopper!!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: