com.ibm.db2.jcc.b.SqlException: [jcc][1071][10611][3.50.152] Caught java.security.InvalidAlgorithmParameterException while initializing EncryptionManager. See attached Throwable for details. ERRORCODE=-4223, SQLSTATE=null

tip

You're either not using a valid size or you're out the boundaries. If you really must use a number bigger than 1024 please consider using BouncyCastle, as the JDK SSL only supports up to 1024

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • InvalidAlgorithmParameterException
    via by rahulJ james,
  • InvalidAlgorithmParameterException
    via by rahulJ james,
  • InvalidAlgorithmParameterException
    via by rahulJ james,
  • Diffie Hellman Key Exchange
    via Stack Overflow by Clearner88
    ,
  • IDEA 13 does not accept IBM VM 1.6 as a valid JVM
    via by Unknown author,
    • com.ibm.db2.jcc.b.SqlException: [jcc][1071][10611][3.50.152] Caught java.security.InvalidAlgorithmParameterException while initializing EncryptionManager. See attached Throwable for details. ERRORCODE=-4223, SQLSTATE=null at com.ibm.db2.jcc.b.wc.a(wc.java:55) at com.ibm.db2.jcc.b.wc.a(wc.java:84) at com.ibm.db2.jcc.b.ic.<init>(ic.java:87) at com.ibm.db2.jcc.t4.b.Mc(b.java:2334) at com.ibm.db2.jcc.t4.b.v(b.java:1097) at com.ibm.db2.jcc.t4.b.c(b.java:648) at com.ibm.db2.jcc.t4.b.b(b.java:618) at com.ibm.db2.jcc.t4.b.a(b.java:360) at com.ibm.db2.jcc.t4.b.<init>(b.java:298) at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:193) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at ColaDAO.main(ColaDAO.java:29) Caused by: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive) at com.sun.crypto.provider.DHKeyPairGenerator.initialize(DashoA12275) at java.security.KeyPairGenerator$Delegate.initialize(Unknown Source) at java.security.KeyPairGenerator.initialize(Unknown Source) at com.ibm.db2.jcc.b.ic.<init>(ic.java:75) ... 10 more

    Users with the same issue

    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    4 more bugmates