• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.security.InvalidKeyException: Illegal key size or default parameters error

 
Ranch Hand
Posts: 237
MyEclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


i have just downloaded jdk1.6.0_23 and installed.
environment variables are:
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_23
path = JAVA_HOME\bin;
classpath = JAVA_HOME\lib...;

local_policy.jar and US_export_policy.jar files are there in C:\Program Files\Java\jdk1.6.0_23\jre\lib\security folder.

1)still why i am getting the following error :
java.security.InvalidKeyException: Illegal key size or default parameters error
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)



2)can i use US_export_policy.jar withought any licence in india.
very thank full to you all if i get any suggestions for to solve this exception.

 
Ranch Hand
Posts: 781
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Those jars are in the jre/lib/security directory even if you have not installed the 'unlimited strength' files. Installing the 'unlimited strength' files just replaces those jars. If you did not explicitly install the 'unlimited strength' files then you should.

Why do you think you need a bigger key than 128 bits?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic