java.security.InvalidKeyException: Modulus size must range from 512 to 1024 and be a multiple of 64

JDK Bug System | Shadow Bug | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Root Cause Analysis

  1. java.security.InvalidKeyException

    Modulus size must range from 512 to 1024 and be a multiple of 64

    at sun.security.provider.DSA.checkKey()
  2. Java RT
    Signature$Delegate.init
    1. sun.security.provider.DSA.checkKey(DSA.java:281)
    2. sun.security.provider.DSA.engineInitVerify(DSA.java:222)
    3. java.security.Signature$Delegate.init(Signature.java:1088)
    3 frames