This discussion is archived
11 Replies Latest reply: Oct 2, 2012 5:59 AM by 790270 RSS

Exception: javax.net.ssl.SSLHandshakeException:  Error Weblogic 10.3.5

790270 Newbie
Currently Being Moderated
Hi all,

First I would like to thank everyone's help.

I am facing problems in carrying out the integration of my web application with a web service via https protocol (ssl). I checked other posts on this site to try to resolve the problem but could not succeed.

I´m using weblogic 10.3.5 version and Java 1.6_24.

Follow the error.

Cert Types: RSA, DSS, ECDSA
Cert Authorities:
<CN=VIP Authentication Service CA, O="VeriSign, Inc.", C=US>
<CN=VeriSign Identity Protection Root CA, O="VeriSign, Inc.", C=US>
<OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US>
<CN=VeriSign Class 3 Managed PKI Administrator CA - G3, OU=VeriSign Trust Network, O="VeriSign, Inc.", C=US>
<OU="www.verisign.com/CPS Incorp.by Ref., LIAB. LTD. (c) 97 VeriSign", OU=VeriSign OnSite Administrator CA - Class 3, O=VeriSign Trust Network>
<CN=VeriSign Class 3 Public Primary Certification Authority - G3, OU="(c) 1999 VeriSign, Inc. - For authorized use only", OU=VeriSign Trust Network, O
="VeriSign, Inc.", C=US>
*** ServerHelloDone
*** Certificate chain
***
*** ClientKeyExchange, RSA PreMasterSecret, TLSv1
[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)', WRITE: TLSv1 Handshake, length = 269
SESSION KEYGEN:
PreMaster Secret:
0000: 03 01 7F 24 71 79 14 13 F7 F9 12 59 6E 0F F0 78 ...$qy.....Yn..x
0010: 35 98 5A CE AF 55 76 B3 61 4B CD 9F 54 35 62 FB 5.Z..Uv.aK..T5b.
0020: 0F EA 75 5C A8 CA BC 07 29 DE 84 9D EA 06 B4 42 ..u\....)......B
CONNECTION KEYGEN:
Client Nonce:
0000: 50 54 EE E6 41 C8 51 41 53 7A 95 EC AC 09 7F B7 PT..A.QASz......
0010: 23 05 7F 2A 7E D1 66 01 49 F3 0B B5 62 2D EB 89 #..*..f.I...b-..
Server Nonce:
0000: 50 54 EF 0E 02 5E D2 69 AB 57 82 C7 0B 15 E9 13 PT...^.i.W......
0010: C0 62 0E ED 63 69 9B A2 23 14 9E 61 14 8E B8 76 .b..ci..#..a...v
Master Secret:
0000: F6 5F 32 5A 21 FB 24 B3 7C 96 6B E3 67 4D 4D DF ._2Z!.$...k.gMM.
0010: 08 EF D2 6E F7 52 D1 D9 BB DD CE 17 E5 12 84 A4 ...n.R..........
0020: 16 F0 D7 E5 42 9A B8 9C 6D BC 26 CD 5C E1 32 26 ....B...m.&.\.2&
Client MAC write Secret:
0000: 8E B7 23 14 1F FA FB C8 A4 7A 79 24 56 F3 94 BA ..#......zy$V...
Server MAC write Secret:
0000: 9A 59 88 66 2D ED E0 C0 E1 F4 FF E0 EC 25 2C E5 .Y.f-........%,.
Client write key:
0000: 61 FE 30 4E F5 97 E1 70 44 46 9D A5 4C 69 DA C4 a.0N...pDF..Li..
Server write key:
0000: FA 12 D6 9E 82 26 EE BF E4 02 9C 7E F1 C3 62 56 .....&........bV
... no IV used for this cipher
[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)', WRITE: TLSv1 Change Cipher Spec, length = 1
*** Finished
verify_data: { 171, 203, 106, 26, 174, 105, 235, 34, 142, 186, 110, 155 }
***
[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)', WRITE: TLSv1 Handshake, length = 32
[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)', READ: TLSv1 Alert, length = 2
[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)', RECV TLSv1 ALERT: fatal, handshake_failure
[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)', called closeSocket()
[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)', handling exception: javax.net.ssl.SSLHandshakeException: Received fata
l alert: handshake_failure
Validate() Exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
Finalizer, called close()
Finalizer, called closeInternal(true)


Follow de code test:

try {
service = new VipSoapInterfaceServiceLocator();
m_url = "https://xxx.xxx.xxx";
System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
System.setProperty("javax.net.debug",sslContexto);
System.setProperty("javax.net.ssl.cert", certFile);
System.setProperty("javax.net.ssl.keyStorePassword", password);
System.setProperty("https.protocols", "TLSv1,SSLv3");
//System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
//Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
//System.setProperty("https.protocols", "SSLv3");
System.setProperty("javax.net.ssl.trustStorePassword",password1);
System.setProperty("javax.net.ssl.trustStoreType",tipoKeyStore);
System.setProperty("javax.net.ssl.trustStore",keyStore);

System.setProperty("sun.security.ssl.allowUnsafeRenegotiation",value);
System.setProperty("-Dsun.security.ssl.allowLegacyHelloMessages", value);

Thanks a lot.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points