ssl - Could not generate DH keypair in java 6 -


i'm trying call ws in https , i'm getting error:

caused by: java.lang.runtimeexception: not generate dh keypair     @ sun.security.ssl.dhcrypt.<init>(unknown source)     @ sun.security.ssl.clienthandshaker.serverkeyexchange(unknown source)     @ sun.security.ssl.clienthandshaker.processmessage(unknown source)     @ sun.security.ssl.handshaker.processloop(unknown source)     @ sun.security.ssl.handshaker.process_record(unknown source)     @ sun.security.ssl.sslsocketimpl.readrecord(unknown source)     @ sun.security.ssl.sslsocketimpl.performinitialhandshake(unknown source )         ... 22 common frames omitted caused by: java.security.invalidalgorithmparameterexception: prime size must multiple of 64, , can range 512 1024 (inclusive)         @ com.sun.crypto.provider.dhkeypairgenerator.initialize(dhkeypairgenera tor.java:120)         @ java.security.keypairgenerator$delegate.initialize(unknown source)         ... 29 common frames omitted 

in java 7 i've solved jdk.tls.disabledalgorithms=dhe, ecdhe in java security, must use java 6 (and i'm not sure disabling dh idea; connection secure yet, way?)

i've tried use bouncycastleprovider , error:

caused by: java.lang.runtimeexception: javax.net.ssl.sslexception:   java.lang.arr ayindexoutofboundsexception: 64         @ net.unicon.test.run(test.java:61)         @ org.springframework.boot.springapplication.callrunner(springapplicati on.java:798)         ... 14 common frames omitted caused by: javax.net.ssl.sslexception: java.lang.arrayindexoutofboundsexception:  64         @ sun.security.ssl.alerts.getsslexception(unknown source)         @ sun.security.ssl.sslsocketimpl.fatal(unknown source)         @ sun.security.ssl.sslsocketimpl.fatal(unknown source)         @ sun.security.ssl.sslsocketimpl.handleexception(unknown source)         @ sun.security.ssl.sslsocketimpl.starthandshake(unknown source)         @ sun.security.ssl.sslsocketimpl.starthandshake(unknown source)         @ sun.net.www.protocol.https.httpsclient.afterconnect(unknown source)         @ sun.net.www.protocol.https.abstractdelegatehttpsurlconnection.connect (unknown source)         @ sun.net.www.protocol.http.httpurlconnection.getinputstream(unknown urce)         @ sun.net.www.protocol.https.httpsurlconnectionimpl.getinputstream(unkn own source)         @ net.unicon.test.run(test.java:41)         ... 15 common frames omitted caused by: java.lang.arrayindexoutofboundsexception: 64         @ com.sun.crypto.provider.tlsprfgenerator.expand(tlsprfgenerator.java:2 75)         @ com.sun.crypto.provider.tlsprfgenerator.dotls10prf(tlsprfgenerator.ja va:247)         @ com.sun.crypto.provider.tlsprfgenerator.dotls10prf(tlsprfgenerator.ja va:219)         @ com.sun.crypto.provider.tlsmastersecretgenerator.enginegeneratekey(tl smastersecretgenerator.java:108)         @ javax.crypto.keygenerator.generatekey(keygenerator.java:530)         @ sun.security.ssl.handshaker.calculatemastersecret(unknown source)         @ sun.security.ssl.handshaker.calculatekeys(unknown source)         @ sun.security.ssl.clienthandshaker.serverhellodone(unknown source)         @ sun.security.ssl.clienthandshaker.processmessage(unknown source)         @ sun.security.ssl.handshaker.processloop(unknown source)         @ sun.security.ssl.handshaker.process_record(unknown source)         @ sun.security.ssl.sslsocketimpl.readrecord(unknown source)         @ sun.security.ssl.sslsocketimpl.performinitialhandshake(unknown source )         ... 22 common frames omitted 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -