000022777 - 'Java keytool Exception: Modulus size must range from 512 to 2048' in RSA BSAFE Crypto-J

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000022777
Applies ToJDK 1.4
RSA BSAFE Crypto-J
jsafeJCE
Issue"Java keytool Exception: Modulus size must range from 512 to 2048" in RSA BSAFE Crypto-J
keytool -genkey -keyalg RSA -keysize 4096 -provider com.rsa.jsafe.provider.JsafeJCE ...

gives result:

keytool error: java.lang.IllegalArgumentException: Modulus size must range from 512 to 2048
CauseAppears to be a bug in JDK 1.4.2_08
ResolutionTo correct this issue, use JDK 1.5 instead of 1.4 (copy jsafeJCE.jar into the jdk1.5.0_04\jre\lib\ext directory and run jdk1.5.0_04\bin\keytool).
Legacy Article IDa30291

Attachments

    Outcomes