AnsweredAssumed Answered

SSL request got java.security.InvalidAlgorithmParameterException

Question asked by Jun zhuang on Sep 20, 2016
Latest reply on Sep 21, 2016 by B-F-E5PSMH

I am trying to make a SSL request, {domain}/sso/***?course_slug=nav-act-prep&code=olhnuk, but got following exception:

 

The SSL server certificate for {DOMAIN} cannot be verified. (com.soasta.common.exceptions.CommonException)
java.lang.RuntimeException: Could not generate DH keypair (javax.net.ssl.SSLException)
java.lang.RuntimeException: Could not generate DH keypair
at sun.security.ssl.DHCrypt.<init>(DHCrypt.java:136)
at sun.security.ssl.ClientHandshaker.serverKeyExchange(ClientHandshaker.java:681)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:261)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:878)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:814)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:552)
at com.soasta.common.http.syncio.o.connectSocket(o.java:248)
at com.soasta.common.http.syncio.o.connectSocket(o.java:170)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
at com.soasta.common.http.syncio.s.openConnection(s.java:62)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)
at com.soasta.common.http.syncio.t.open(t.java:195)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
at com.soasta.common.http.syncio.p.execute(p.java:117)
at com.soasta.common.http.syncio.m.a(m.java:1161)
at com.soasta.common.http.syncio.m.a(m.java:777)
at com.soasta.common.http.syncio.m.a(m.java:659)
at com.soasta.maestro.transport.mb.b(mb.java:2337)
at com.soasta.maestro.transport.mb.a(mb.java:2197)
at com.soasta.maestro.transport.q.a(q.java:1119)
at com.soasta.maestro.player.ke.a(ke.java:966)
at com.soasta.maestro.player.re.a(re.java:549)
at com.soasta.maestro.player.me.Ib(me.java:740)
at com.soasta.maestro.player.zc.a(zc.java:1166)
at com.soasta.maestro.player.zc.a(zc.java:7557)
at com.soasta.maestro.player.ed.U(ed.java:3524)
at com.soasta.maestro.player.ed.Ib(ed.java:2455)
at com.soasta.maestro.player.zc.a(zc.java:1166)
at com.soasta.maestro.player.zc.a(zc.java:7557)
at com.soasta.maestro.player.ed.U(ed.java:3524)
at com.soasta.maestro.player.ed.Ib(ed.java:2455)
at com.soasta.maestro.player.zc.a(zc.java:1166)
at com.soasta.maestro.player.zc.a(zc.java:7557)
at com.soasta.maestro.player.we.Ib(we.java:362)
at com.soasta.maestro.player.zc.a(zc.java:1166)
at com.soasta.maestro.player.rb.taskExecute(rb.java:714)
at com.soasta.common.taskpool.s.run(s.java:582)
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(DHKeyPairGenerator.java:120)
at java.security.KeyPairGenerator$Delegate.initialize(KeyPairGenerator.java:658)
at sun.security.ssl.DHCrypt.<init>(DHCrypt.java:127)
... 44 more

Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive) (java.security.InvalidAlgorithmParameterException)

 

Can someone help? Appreciate it.

 

Jun

Outcomes