0 0

java.security.InvalidAlgorithmParameterException: Prime size must be multiple5

javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1842)
at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1825)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1346)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
at com.usousou.flightswitch.base.utils.HttpsUtil.getConnection(HttpsUtil.java:247)
at com.usousou.flightswitch.base.utils.HttpsUtil.doPost(HttpsUtil.java:199)
at com.usousou.flightswitch.base.utils.HttpsUtil.doPost(HttpsUtil.java:166)
at test.pnair.TestSearchFlight.searchFlight(TestSearchFlight.java:88)
at test.pnair.TestSearchFlight.main(TestSearchFlight.java:35)
Caused by: 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)
... 9 more
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)
... 16 more
 
2015年1月16日 15:44

2個答案 按時間排序 按投票排序

0 0

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

2016年3月22日 14:50
0 0

問題解決了嗎?是JDK版本問題嗎?

2016年1月20日 10:43
Global site tag (gtag.js) - Google Analytics 开心农场种蔬菜赚钱 浙江省体彩6十1开奖结果查询 双色球胆拖投注对照表 在线配资平台到杨方配资不错 辽宁11选5全运彩助手 青海十一选五20分开奖助手 天津快乐十分奇偶走势图 炒股经历 河南省11选5开奖结果 体彩江苏7位数开奖时间 河北快乐扑克中奖规则 配资炒股利息 贵州体彩11选5一定牛 湖南幸运赛车现场直播 安徽25选5开奖 福彩河北省排列7 参与期货配资合法吗