Forum Stats

  • 3,826,669 Users
  • 2,260,688 Discussions
  • 7,897,046 Comments

Discussions

main, Exception while waiting for close javax.net.ssl.SSLHandshakeException: Received fatal alert: h

Hi,

I am using  java 1.7.0_55 in a client to make an SSL/TLS connection. I modified the SSLPoke class I found on the net and I have a jks file (keyStorage).

{code}

public class SSLPoke {

   

    private static final String[] VERSIONS = new String[] {"TLSv1.2"};

   

    public static void main(String[] args) {

        if (args.length != 2) {

            System.out.println("Usage: "+SSLPoke.class.getName()+" <host> <port>");

            System.exit(1);

        }

        try {

            System.setProperty("javax.net.ssl.keyStore", "/path/to/keystore/cacerts");

            System.setProperty("javax.net.ssl.keyStorePassword","changeme");

           

            //accept all certificates

            SSLSocketFactory sslSocketFactory = createSslSocketFactory();

           

           

            //SSLSocketFactory sslsocketfactory = (SSLSocketFactory) SSLSocketFactory.getDefault();

            SSLSocket sslsocket = (SSLSocket) sslSocketFactory.createSocket(args[0], Integer.parseInt(args[1]));

            sslsocket.setEnabledProtocols(VERSIONS);

            for (String protocol : sslsocket.getEnabledProtocols()) {

                System.out.println(protocol);

            }

           

            InputStream in = sslsocket.getInputStream();

            OutputStream out = sslsocket.getOutputStream();

            // Write a test byte to get a reaction

            out.write(1);

            while (in.available() > 0) {

                System.out.print(in.read());

            }

            System.out.println("Successfully connected");

        } catch (Exception exception) {

            exception.printStackTrace();

        }

    }

   

    private static SSLSocketFactory createSslSocketFactory() throws Exception {

        TrustManager[] byPassTrustManagers = new TrustManager[] { new X509TrustManager() {

            public X509Certificate[] getAcceptedIssuers() {

                return new X509Certificate[0];

            }

            public void checkClientTrusted(X509Certificate[] chain, String authType) {

            }

            public void checkServerTrusted(X509Certificate[] chain, String authType) {

            }

        } };

        SSLContext sslContext = SSLContext.getInstance("TLS");

        sslContext.init(null, byPassTrustManagers, new SecureRandom());

        return sslContext.getSocketFactory();

    }

}

{code}

Any ideas or hints since I am stuck!

//mike

trigger seeding of SecureRandom

done seeding SecureRandom

Ignoring unavailable cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA

Ignoring unavailable cipher suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA

Ignoring unavailable cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA

Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_128_CBC_SHA256

Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA256

Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA256

Ignoring unsupported cipher suite: TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256

Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA256

Ignoring unsupported cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384

Ignoring unsupported cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384

Ignoring unsupported cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA256

Ignoring unavailable cipher suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA

Ignoring unsupported cipher suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256

Ignoring unsupported cipher suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384

Ignoring unavailable cipher suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA

Ignoring unsupported cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384

Ignoring unsupported cipher suite: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256

Ignoring unsupported cipher suite: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256

Ignoring unavailable cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA

Ignoring unavailable cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA

Ignoring unsupported cipher suite: TLS_RSA_WITH_AES_128_CBC_SHA256

Allow unsafe renegotiation: false

Allow legacy hello messages: true

Is initial handshake: true

Is secure renegotiation: false

TLSv1.2

%% No cached client session

*** ClientHello, TLSv1.2

RandomCookie:  GMT: 1455809887 bytes = { 77, 177, 139, 170, 106, 79, 171, 102, 241, 70, 165, 76, 236, 208, 22, 162, 244, 229, 40, 24, 92, 181, 19, 10, 117, 173, 214, 240 }

Session ID:  {}

Cipher Suites: [TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, TLS_ECDHE_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH_RC4_128_SHA, TLS_ECDH_ECDSA_WITH_RC4_128_SHA, TLS_ECDH_RSA_WITH_RC4_128_SHA, TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_RC4_128_MD5, TLS_EMPTY_RENEGOTIATION_INFO_SCSV]

Compression Methods:  { 0 }

Extension elliptic_curves, curve names: {secp256r1, sect163k1, sect163r2, secp192r1, secp224r1, sect233k1, sect233r1, sect283k1, sect283r1, secp384r1, sect409k1, sect409r1, secp521r1, sect571k1, sect571r1, secp160k1, secp160r1, secp160r2, sect163r1, secp192k1, sect193r1, sect193r2, secp224k1, sect239k1, secp256k1}

Extension ec_point_formats, formats: [uncompressed]

Extension signature_algorithms, signature_algorithms: SHA512withECDSA, SHA512withRSA, SHA384withECDSA, SHA384withRSA, SHA256withECDSA, SHA256withRSA, SHA224withECDSA, SHA224withRSA, SHA1withECDSA, SHA1withRSA, SHA1withDSA, MD5withRSA

***

[write] MD5 and SHA1 hashes:  len = 179

0000: 01 00 00 AF 03 03 57 C6   E5 5F 4D B1 8B AA 6A 4F  ......W.._M...jO

0010: AB 66 F1 46 A5 4C EC D0   16 A2 F4 E5 28 18 5C B5  .f.F.L......(.\.

0020: 13 0A 75 AD D6 F0 00 00   2A C0 09 C0 13 00 2F C0  ..u.....*...../.

0030: 04 C0 0E 00 33 00 32 C0   07 C0 11 00 05 C0 02 C0  ....3.2.........

0040: 0C C0 08 C0 12 00 0A C0   03 C0 0D 00 16 00 13 00  ................

0050: 04 00 FF 01 00 00 5C 00   0A 00 34 00 32 00 17 00  ......\...4.2...

0060: 01 00 03 00 13 00 15 00   06 00 07 00 09 00 0A 00  ................

0070: 18 00 0B 00 0C 00 19 00   0D 00 0E 00 0F 00 10 00  ................

0080: 11 00 02 00 12 00 04 00   05 00 14 00 08 00 16 00  ................

0090: 0B 00 02 01 00 00 0D 00   1A 00 18 06 03 06 01 05  ................

00A0: 03 05 01 04 03 04 01 03   03 03 01 02 03 02 01 02  ................

00B0: 02 01 01                                           ...

main, WRITE: TLSv1.2 Handshake, length = 179

[Raw write]: length = 184

0000: 16 03 03 00 B3 01 00 00   AF 03 03 57 C6 E5 5F 4D  ...........W.._M

0010: B1 8B AA 6A 4F AB 66 F1   46 A5 4C EC D0 16 A2 F4  ...jO.f.F.L.....

0020: E5 28 18 5C B5 13 0A 75   AD D6 F0 00 00 2A C0 09  .(.\...u.....*..

0030: C0 13 00 2F C0 04 C0 0E   00 33 00 32 C0 07 C0 11  .../.....3.2....

0040: 00 05 C0 02 C0 0C C0 08   C0 12 00 0A C0 03 C0 0D  ................

0050: 00 16 00 13 00 04 00 FF   01 00 00 5C 00 0A 00 34  ...........\...4

0060: 00 32 00 17 00 01 00 03   00 13 00 15 00 06 00 07  .2..............

0070: 00 09 00 0A 00 18 00 0B   00 0C 00 19 00 0D 00 0E  ................

0080: 00 0F 00 10 00 11 00 02   00 12 00 04 00 05 00 14  ................

0090: 00 08 00 16 00 0B 00 02   01 00 00 0D 00 1A 00 18  ................

00A0: 06 03 06 01 05 03 05 01   04 03 04 01 03 03 03 01  ................

00B0: 02 03 02 01 02 02 01 01                            ........

[Raw read]: length = 5

0000: 16 03 03 00 57                                     ....W

[Raw read]: length = 87

0000: 02 00 00 53 03 03 57 C6   E5 5F C5 D0 18 FC 77 4F  ...S..W.._....wO

0010: DD 3C 3D FE F8 33 CF C4   6A 31 2B 85 80 E0 1E CC  .<=..3..j1+.....

0020: 40 5A CB 5E 43 40 20 95   35 1A BE 92 E0 26 D6 A1  @Z.^[email protected] .5....&..

0030: 74 CC A3 5E 4E 99 4B 01   54 6B FA 16 D8 DB D8 35  t..^N.K.Tk.....5

0040: 21 C4 09 EF 5C C7 73 C0   13 00 00 0B 00 0B 00 02  !...\.s.........

0050: 01 00 FF 01 00 01 00                               .......

main, READ: TLSv1.2 Handshake, length = 87

*** ServerHello, TLSv1.2

RandomCookie:  GMT: 1455809887 bytes = { 197, 208, 24, 252, 119, 79, 221, 60, 61, 254, 248, 51, 207, 196, 106, 49, 43, 133, 128, 224, 30, 204, 64, 90, 203, 94, 67, 64 }

Session ID:  {149, 53, 26, 190, 146, 224, 38, 214, 161, 116, 204, 163, 94, 78, 153, 75, 1, 84, 107, 250, 22, 216, 219, 216, 53, 33, 196, 9, 239, 92, 199, 115}

Cipher Suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA

Compression Method: 0

Extension ec_point_formats, formats: [uncompressed]

Extension renegotiation_info, renegotiated_connection: <empty>

***

%% Initialized:  [Session-1, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA]

** TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA

[read] MD5 and SHA1 hashes:  len = 87

0000: 02 00 00 53 03 03 57 C6   E5 5F C5 D0 18 FC 77 4F  ...S..W.._....wO

0010: DD 3C 3D FE F8 33 CF C4   6A 31 2B 85 80 E0 1E CC  .<=..3..j1+.....

0020: 40 5A CB 5E 43 40 20 95   35 1A BE 92 E0 26 D6 A1  @Z.^[email protected] .5....&..

0030: 74 CC A3 5E 4E 99 4B 01   54 6B FA 16 D8 DB D8 35  t..^N.K.Tk.....5

0040: 21 C4 09 EF 5C C7 73 C0   13 00 00 0B 00 0B 00 02  !...\.s.........

0050: 01 00 FF 01 00 01 00                               .......

[Raw read]: length = 5

0000: 16 03 03 06 CB                                     .....

[Raw read]: length = 1739

0000: 0B 00 06 C7 00 06 C4 00   03 7B 30 82 03 77 30 82  ..........0..w0.

0010: 02 5F A0 03 02 01 02 02   01 04 30 0D 06 09 2A 86  ._........0...*.

0020: 48 86 F7 0D 01 01 0B 05   00 30 56 31 0B 30 09 06  H........0V1.0..

0030: 03 55 04 06 13 02 53 45   31 12 30 10 06 03 55 04  .U....SE1.0...U.

0040: 08 13 09 53 74 6F 63 6B   68 6F 6C 6D 31 0E 30 0C  ...Stockholm1.0.

0050: 06 03 55 04 07 13 05 4B   69 73 74 61 31 12 30 10  ..U....Kista1.0.

0060: 06 03 55 04 0A 13 09 43   65 6E 6F 62 79 74 65 73  ..U....Cenobytes

0070: 31 0F 30 0D 06 03 55 04   03 14 06 43 41 5F 4C 41  1.0...U....CA_LA

0080: 42 30 1E 17 0D 31 36 30   31 31 35 31 33 31 30 34  B0...16011513104

0090: 39 5A 17 0D 34 33 30 36   30 31 31 33 31 30 34 39  9Z..430601131049

00A0: 5A 30 60 31 0B 30 09 06   03 55 04 06 13 02 53 45  Z0`1.0...U....SE

00B0: 31 12 30 10 06 03 55 04   08 13 09 53 74 6F 63 6B  1.0...U....Stock

00C0: 68 6F 6C 6D 31 0E 30 0C   06 03 55 04 07 13 05 4B  holm1.0...U....K

00D0: 69 73 74 61 31 12 30 10   06 03 55 04 0A 13 09 43  ista1.0...U....C

00E0: 65 6E 6F 62 79 74 65 73   31 19 30 17 06 03 55 04  enobytes1.0...U.

00F0: 03 14 10 52 42 53 5F 4E   4F 44 45 5F 47 45 4E 45  ...RBS_NODE_GENE

0100: 52 49 43 30 82 01 22 30   0D 06 09 2A 86 48 86 F7  RIC0.."0...*.H..

0110: 0D 01 01 01 05 00 03 82   01 0F 00 30 82 01 0A 02  ...........0....

0120: 82 01 01 00 D8 8A 84 F4   BC 77 9C F3 64 5B 0D A9  .........w..d[..

0130: BA 15 6B D5 FC 60 A6 21   54 8D B9 4B 9D E3 3E A2  ..k..`.!T..K..>.

0140: CB 8B 31 9C FA C4 29 CD   DF 2A 40 FB 92 57 FA 60  ..1...)..*@..W.`

0150: 81 5E AA 20 2D 7F CB EA   15 F2 72 F2 CA 75 38 E0  .^. -.....r..u8.

0160: 2A 5E AB D3 BF E8 BF D3   64 F0 33 8D C6 A4 0E CD  *^......d.3.....

0170: EB 70 CD 05 F4 84 24 E6   8F B3 DA 9F 16 5E F9 2E  .p....$......^..

0180: A9 D2 50 EC D6 B6 1F E3   DF F5 8D D2 98 54 06 BA  ..P..........T..

0190: D9 FD EA 4A 90 A7 FC BF   E4 CD 71 5B F9 C1 37 2A  ...J......q[..7*

01A0: 3A 9D 67 F2 21 00 24 5F   A7 A8 8B 48 7D 1C CF 5B  :.g.!.$_...H...[

01B0: 4B 7D F0 26 DC B8 BC 39   7C E8 3C 99 AC 42 9B 19  K..&...9..<..B..

01C0: CA E9 37 E5 9E 2C 6A 41   C0 F7 60 0F D4 89 C4 AD  ..7..,jA..`.....

01D0: D1 28 47 97 BC 61 8D 9A   03 12 F8 4C 7B 14 65 14  .(G..a.....L..e.

01E0: 96 9C B9 79 DF 12 8C 9E   E7 10 F9 DC 9D 5F 6C 20  ...y........._l

01F0: 0B EA 5C 20 4E 9A C8 05   2C 46 2A 54 68 BE 49 CC  ..\ N...,F*Th.I.

0200: A1 60 0D B5 A8 D8 F2 66   C3 4C EA D3 C4 65 DE 30  .`.....f.L...e.0

0210: E6 F8 72 E5 8E CD 4C 65   C4 8D 47 F6 43 9E 90 DF  ..r...Le..G.C...

0220: A5 F3 1E F9 02 03 01 00   01 A3 46 30 44 30 09 06  ..........F0D0..

0230: 03 55 1D 13 04 02 30 00   30 0B 06 03 55 1D 0F 04  .U....0.0...U...

0240: 04 03 02 03 B8 30 2A 06   03 55 1D 11 04 23 30 21  .....0*..U...#0!

0250: 82 1F 72 62 73 2D 77 69   74 68 2D 69 70 73 65 63  ..rbs-with-ipsec

0260: 2E 61 74 2E 73 6F 6D 65   2E 73 69 74 65 2E 63 6F  .at.some.site.co

0270: 6D 30 0D 06 09 2A 86 48   86 F7 0D 01 01 0B 05 00  m0...*.H........

0280: 03 82 01 01 00 10 3E 03   87 6C DD 61 CB 90 24 46  ......>..l.a..$F

0290: 28 E8 4D 72 1D 70 A1 06   E6 BC 12 38 C8 E8 79 EE  (.Mr.p.....8..y.

02A0: EB 08 68 3C F6 DC 04 03   A5 20 A9 61 26 D4 B0 51  ..h<..... .a&..Q

02B0: 24 87 4D FB D6 5D 49 37   3D CB 79 E4 A2 3B 04 AD  $.M..]I7=.y..;..

02C0: 0C C9 57 2E CF 62 08 A9   E0 14 CB AF C8 35 F1 F5  ..W..b.......5..

02D0: C0 FC 15 7B 40 E4 0C 16   E8 B7 B5 27 DA EF F7 7B  [email protected]'....

02E0: D6 03 3E D3 DB EF D5 3D   E4 9F F3 A5 9B 0F 27 AD  ..>....=......'.

02F0: 0C FB C8 7C 65 BD A6 45   A9 70 53 6E 36 3D 7E FC  ....e..E.pSn6=..

0300: 3D 14 EA 95 E2 D0 A6 6A   97 C4 67 B7 9A 76 9B 75  =......j..g..v.u

0310: AC 17 20 80 F2 65 C7 79   61 9F 80 FE 7A 49 BD 79  .. ..e.ya...zI.y

0320: 9E A5 65 02 43 92 C6 CA   99 5D 11 BE 7B 62 BB 02  ..e.C....]...b..

0330: 14 9A BA A2 6F B9 EA 95   A0 D0 16 09 2A 48 AE DE  ....o.......*H..

0340: 3C 05 70 BB EE 15 2F 48   56 6B 86 BA 8E 5D 29 F5  <.p.../HVk...]).

0350: F1 F4 2C F7 9C EA D5 A5   C2 6F 55 AD 24 8A A5 A2  ..,......oU.$...

0360: 3D 58 0E A3 A7 7F 94 EC   34 F8 09 0E 32 9A F5 15  =X......4...2...

0370: 17 78 4E 64 ED F5 18 D5   39 A9 9D 3D CC D4 8E 6C  .xNd....9..=...l

0380: 10 9B 56 D1 89 00 03 43   30 82 03 3F 30 82 02 27  ..V....C0..?0..'

0390: A0 03 02 01 02 02 09 00   B9 F2 25 92 16 64 EB 8E  ..........%..d..

03A0: 30 0D 06 09 2A 86 48 86   F7 0D 01 01 0B 05 00 30  0...*.H........0

03B0: 56 31 0B 30 09 06 03 55   04 06 13 02 53 45 31 12  V1.0...U....SE1.

03C0: 30 10 06 03 55 04 08 13   09 53 74 6F 63 6B 68 6F  0...U....Stockho

03D0: 6C 6D 31 0E 30 0C 06 03   55 04 07 13 05 4B 69 73  lm1.0...U....Kis

03E0: 74 61 31 12 30 10 06 03   55 04 0A 13 09 43 65 6E  ta1.0...U....Cen

03F0: 6F 62 79 74 65 73 31 0F   30 0D 06 03 55 04 03 14  obytes1.0...U...

0400: 06 43 41 5F 4C 41 42 30   1E 17 0D 31 36 30 31 31  .CA_LAB0...16011

0410: 35 31 33 30 39 35 32 5A   17 0D 34 33 30 36 30 31  5130952Z..430601

0420: 31 33 30 39 35 32 5A 30   56 31 0B 30 09 06 03 55  130952Z0V1.0...U

0430: 04 06 13 02 53 45 31 12   30 10 06 03 55 04 08 13  ....SE1.0...U...

0440: 09 53 74 6F 63 6B 68 6F   6C 6D 31 0E 30 0C 06 03  .Stockholm1.0...

0450: 55 04 07 13 05 4B 69 73   74 61 31 12 30 10 06 03  U....Kista1.0...

0460: 55 04 0A 13 09 43 65 6E   6F 62 79 74 65 73 31 0F  U....Cenobytes1.

0470: 30 0D 06 03 55 04 03 14   06 43 41 5F 4C 41 42 30  0...U....CA_LAB0

0480: 82 01 22 30 0D 06 09 2A   86 48 86 F7 0D 01 01 01  .."0...*.H......

0490: 05 00 03 82 01 0F 00 30   82 01 0A 02 82 01 01 00  .......0........

04A0: B4 CE 13 C5 01 E8 6B E1   24 3B 75 BD 85 25 55 E3  ......k.$;u..%U.

04B0: DD 73 8A B9 B2 9B 7A 43   41 C0 4B 36 90 E9 61 BB  .s....zCA.K6..a.

04C0: 49 DA 7E B5 91 3D F9 A9   F2 FE 61 AF 02 6B 10 88  I....=....a..k..

04D0: 37 A9 AA 1F 5A A7 AE FF   A0 E2 FE AF 12 FA 52 9E  7...Z.........R.

04E0: 56 9B 98 0F D8 B6 EB 1C   89 DF 2F C7 38 46 FD 01  V........./.8F..

04F0: 76 C2 A0 22 B8 53 58 69   22 61 B8 35 49 16 F5 D0  v..".SXi"a.5I...

0500: DC EF 88 D0 B3 AD 81 5D   BB C0 21 81 72 C6 61 1E  .......]..!.r.a.

0510: 55 31 EF 14 AD 0F D0 00   AE 50 0D DE F6 FA D2 B8  U1.......P......

0520: 27 DD 08 41 EE 39 5E 61   C4 5C B1 18 67 B6 63 CB  '..A.9^a.\..g.c.

0530: 6D 02 15 F6 99 41 69 2F   C3 96 60 2A 54 44 66 FC  m....Ai/..`*TDf.

0540: F5 FF 34 F0 A6 77 52 90   D7 9E 84 4B 38 E2 D5 70  ..4..wR....K8..p

0550: 20 ED B3 8B 05 29 D7 D7   CA 90 86 29 25 5E 76 8D   ....).....)%^v.

0560: AA 06 B8 6D 1C E2 2B 6A   6D EF 6A 4E D7 2D 47 2B  ...m..+jm.jN.-G+

0570: 64 64 96 E9 CA D6 AB 41   7B E3 D9 0B EA DB 2D F8  dd.....A......-.

0580: 55 F8 24 7D 3A 8A C6 FF   26 EF C8 14 F9 98 F3 12  U.$.:...&.......

0590: BA 09 C6 3C C8 F3 4E B2   99 DF A7 97 5B 5B 02 8F  ...<..N.....[[..

05A0: 02 03 01 00 01 A3 10 30   0E 30 0C 06 03 55 1D 13  .......0.0...U..

05B0: 04 05 30 03 01 01 FF 30   0D 06 09 2A 86 48 86 F7  ..0....0...*.H..

05C0: 0D 01 01 0B 05 00 03 82   01 01 00 6D 7C B2 F1 3E  ...........m...>

05D0: 8A 21 1E ED C7 7D 7B 4F   8F E7 DD A2 2E 14 FD CB  .!.....O........

05E0: C1 C4 47 B7 5F 24 10 17   3C 68 12 FD 23 67 83 47  ..G._$..<h..#g.G

05F0: B4 9A FA 95 CC 64 32 AF   97 5F 91 CE 1E 04 DD 0A  .....d2.._......

0600: 39 32 09 32 0B 96 58 B7   63 71 96 5D E5 75 FE C8  92.2..X.cq.].u..

0610: 3F FE 56 0A 0D 52 9C B0   F4 05 47 31 49 98 58 63  ?.V..R....G1I.Xc

0620: C0 49 39 E0 ED FD 13 EB   9D FB 3A 33 CC 7D FE 87  .I9.......:3....

0630: 88 27 8B 49 14 49 CD A3   FF 3D FB 42 94 29 AF 85  .'.I.I...=.B.)..

0640: 7C 60 8B 93 03 F5 8A 72   DF 01 B7 02 45 9B 30 E1  .`.....r....E.0.

0650: 3E E1 6E D7 38 C7 E6 09   2F C4 69 B5 5D 3F 0D B0  >.n.8.../.i.]?..

0660: AE D1 4D 47 45 01 EA 0D   EA 5C 59 52 74 EB C4 D4  ..MGE....\YRt...

0670: 62 29 1F BF D7 3F 62 A0   DA 98 DB CF 23 FC 9F 86  b)...?b.....#...

0680: CC C0 DB 46 F5 6F CD C2   29 97 7F D9 2C 22 B9 4E  ...F.o..)...,".N

0690: CE 84 90 C7 16 88 D9 8B   94 2D B9 29 C6 8F 68 30  .........-.)..h0

06A0: F1 58 96 92 45 EF FC 08   9A 95 D3 62 38 A7 1B 89  .X..E......b8...

06B0: 8E DB 9F 46 E2 1A 75 8C   C0 B9 43 B8 B2 FD 54 E2  ...F..u...C...T.

06C0: 5F 73 70 34 4A 08 BC 0C   0F 9B 03                 _sp4J......

main, READ: TLSv1.2 Handshake, length = 1739

*** Certificate chain

chain [0] = [

[

  Version: V3

  Subject: CN=RBS_NODE_GENERIC, O=Cenobytes, L=Kista, ST=Stockholm, C=SE

  Signature Algorithm: SHA256withRSA, OID = 1.2.840.113549.1.1.11

  Key:  Sun RSA public key, 2048 bits

  modulus: 27335780314593935303977262482926833176962494689715669363384893208792712699776937662717451472790903666938394729101928480728345822325676086788585412229590016232988426191900615164902746278605238629929704372007941239648670781570491389304001777467302631493024013274145348666562160609337384346642102667208029380085202822455705561576701934782165974469258315135611480358293655286352258784694534278162916637290971045868692991283972836267066549755068433324503677842034574027156743113662033457118241370744802266577391562737127438012930996794821787703628601939419274099196405552072821789090133384142021906596344357844383327002361

  public exponent: 65537

  Validity: [From: Fri Jan 15 14:10:49 CET 2016,

               To: Mon Jun 01 15:10:49 CEST 2043]

  Issuer: CN=CA_LAB, O=Cenobytes, L=Kista, ST=Stockholm, C=SE

  SerialNumber: [    04]

Certificate Extensions: 3

[1]: ObjectId: 2.5.29.19 Criticality=false

BasicConstraints:[

  CA:false

  PathLen: undefined

]

[2]: ObjectId: 2.5.29.15 Criticality=false

KeyUsage [

  DigitalSignature

  Key_Encipherment

  Data_Encipherment

  Key_Agreement

]

[3]: ObjectId: 2.5.29.17 Criticality=false

SubjectAlternativeName [

  DNSName: rbs-with-ipsec.at.some.site.com

]

]

  Algorithm: [SHA256withRSA]

  Signature:

0000: 10 3E 03 87 6C DD 61 CB   90 24 46 28 E8 4D 72 1D  .>..l.a..$F(.Mr.

0010: 70 A1 06 E6 BC 12 38 C8   E8 79 EE EB 08 68 3C F6  p.....8..y...h<.

0020: DC 04 03 A5 20 A9 61 26   D4 B0 51 24 87 4D FB D6  .... .a&..Q$.M..

0030: 5D 49 37 3D CB 79 E4 A2   3B 04 AD 0C C9 57 2E CF  ]I7=.y..;....W..

0050: E4 0C 16 E8 B7 B5 27 DA   EF F7 7B D6 03 3E D3 DB  ......'......>..

0060: EF D5 3D E4 9F F3 A5 9B   0F 27 AD 0C FB C8 7C 65  ..=......'.....e

0070: BD A6 45 A9 70 53 6E 36   3D 7E FC 3D 14 EA 95 E2  ..E.pSn6=..=....

0080: D0 A6 6A 97 C4 67 B7 9A   76 9B 75 AC 17 20 80 F2  ..j..g..v.u.. ..

0090: 65 C7 79 61 9F 80 FE 7A   49 BD 79 9E A5 65 02 43  e.ya...zI.y..e.C

00A0: 92 C6 CA 99 5D 11 BE 7B   62 BB 02 14 9A BA A2 6F  ....]...b......o

00B0: B9 EA 95 A0 D0 16 09 2A   48 AE DE 3C 05 70 BB EE  .......*H..<.p..

00C0: 15 2F 48 56 6B 86 BA 8E   5D 29 F5 F1 F4 2C F7 9C  ./HVk...])...,..

00D0: EA D5 A5 C2 6F 55 AD 24   8A A5 A2 3D 58 0E A3 A7  ....oU.$...=X...

00E0: 7F 94 EC 34 F8 09 0E 32   9A F5 15 17 78 4E 64 ED  ...4...2....xNd.

00F0: F5 18 D5 39 A9 9D 3D CC   D4 8E 6C 10 9B 56 D1 89  ...9..=...l..V..

]

chain [1] = [

[

  Version: V3

  Subject: CN=CA_LAB, O=Cenobytes, L=Kista, ST=Stockholm, C=SE

  Signature Algorithm: SHA256withRSA, OID = 1.2.840.113549.1.1.11

  Key:  Sun RSA public key, 2048 bits

  modulus: 22824515360908376010836517791123966170641813885873142689345973167744693232700937876534306372585126603706319571869320178677264167749308124178629824539664869440850069365606553295130433116104346908937802557111826915466072315130342808175516547749065814516864492556690675137967339889371181891985680873197280915442687259399363950079540428773008139359313753617434398527553621212134193364045338388648633979705474962990958309882400944014790032167289967196050517001877699016297561173771901627541797646394982228026756499745702332332148286193401602406324615710958651089663073887989141296560644602714348582192066083950724988469903

  public exponent: 65537

  Validity: [From: Fri Jan 15 14:09:52 CET 2016,

               To: Mon Jun 01 15:09:52 CEST 2043]

  Issuer: CN=CA_LAB, O=Cenobytes, L=Kista, ST=Stockholm, C=SE

  SerialNumber: [    b9f22592 1664eb8e]

Certificate Extensions: 1

[1]: ObjectId: 2.5.29.19 Criticality=false

BasicConstraints:[

  CA:true

  PathLen:2147483647

]

]

  Algorithm: [SHA256withRSA]

  Signature:

0000: 6D 7C B2 F1 3E 8A 21 1E   ED C7 7D 7B 4F 8F E7 DD  m...>.!.....O...

0010: A2 2E 14 FD CB C1 C4 47   B7 5F 24 10 17 3C 68 12  .......G._$..<h.

0020: FD 23 67 83 47 B4 9A FA   95 CC 64 32 AF 97 5F 91  .#g.G.....d2.._.

0030: CE 1E 04 DD 0A 39 32 09   32 0B 96 58 B7 63 71 96  .....92.2..X.cq.

0040: 5D E5 75 FE C8 3F FE 56   0A 0D 52 9C B0 F4 05 47  ].u..?.V..R....G

0050: 31 49 98 58 63 C0 49 39   E0 ED FD 13 EB 9D FB 3A  1I.Xc.I9.......:

0060: 33 CC 7D FE 87 88 27 8B   49 14 49 CD A3 FF 3D FB  3.....'.I.I...=.

0070: 42 94 29 AF 85 7C 60 8B   93 03 F5 8A 72 DF 01 B7  B.)...`.....r...

0080: 02 45 9B 30 E1 3E E1 6E   D7 38 C7 E6 09 2F C4 69  .E.0.>.n.8.../.i

0090: B5 5D 3F 0D B0 AE D1 4D   47 45 01 EA 0D EA 5C 59  .]?....MGE....\Y

00A0: 52 74 EB C4 D4 62 29 1F   BF D7 3F 62 A0 DA 98 DB  Rt...b)...?b....

00B0: CF 23 FC 9F 86 CC C0 DB   46 F5 6F CD C2 29 97 7F  .#......F.o..)..

00C0: D9 2C 22 B9 4E CE 84 90   C7 16 88 D9 8B 94 2D B9  .,".N.........-.

00D0: 29 C6 8F 68 30 F1 58 96   92 45 EF FC 08 9A 95 D3  )..h0.X..E......

00E0: 62 38 A7 1B 89 8E DB 9F   46 E2 1A 75 8C C0 B9 43  b8......F..u...C

00F0: B8 B2 FD 54 E2 5F 73 70   34 4A 08 BC 0C 0F 9B 03  ...T._sp4J......

]

***

[read] MD5 and SHA1 hashes:  len = 1739

0000: 0B 00 06 C7 00 06 C4 00   03 7B 30 82 03 77 30 82  ..........0..w0.

0010: 02 5F A0 03 02 01 02 02   01 04 30 0D 06 09 2A 86  ._........0...*.

0020: 48 86 F7 0D 01 01 0B 05   00 30 56 31 0B 30 09 06  H........0V1.0..

0030: 03 55 04 06 13 02 53 45   31 12 30 10 06 03 55 04  .U....SE1.0...U.

0040: 08 13 09 53 74 6F 63 6B   68 6F 6C 6D 31 0E 30 0C  ...Stockholm1.0.

0050: 06 03 55 04 07 13 05 4B   69 73 74 61 31 12 30 10  ..U....Kista1.0.

0060: 06 03 55 04 0A 13 09 43   65 6E 6F 62 79 74 65 73  ..U....Cenobytes

0070: 31 0F 30 0D 06 03 55 04   03 14 06 43 41 5F 4C 41  1.0...U....CA_LA

0080: 42 30 1E 17 0D 31 36 30   31 31 35 31 33 31 30 34  B0...16011513104

0090: 39 5A 17 0D 34 33 30 36   30 31 31 33 31 30 34 39  9Z..430601131049

00A0: 5A 30 60 31 0B 30 09 06   03 55 04 06 13 02 53 45  Z0`1.0...U....SE

00B0: 31 12 30 10 06 03 55 04   08 13 09 53 74 6F 63 6B  1.0...U....Stock

00C0: 68 6F 6C 6D 31 0E 30 0C   06 03 55 04 07 13 05 4B  holm1.0...U....K

00D0: 69 73 74 61 31 12 30 10   06 03 55 04 0A 13 09 43  ista1.0...U....C

00E0: 65 6E 6F 62 79 74 65 73   31 19 30 17 06 03 55 04  enobytes1.0...U.

00F0: 03 14 10 52 42 53 5F 4E   4F 44 45 5F 47 45 4E 45  ...RBS_NODE_GENE

0100: 52 49 43 30 82 01 22 30   0D 06 09 2A 86 48 86 F7  RIC0.."0...*.H..

0110: 0D 01 01 01 05 00 03 82   01 0F 00 30 82 01 0A 02  ...........0....

0120: 82 01 01 00 D8 8A 84 F4   BC 77 9C F3 64 5B 0D A9  .........w..d[..

0130: BA 15 6B D5 FC 60 A6 21   54 8D B9 4B 9D E3 3E A2  ..k..`.!T..K..>.

0140: CB 8B 31 9C FA C4 29 CD   DF 2A 40 FB 92 57 FA 60  ..1...)..*@..W.`

0150: 81 5E AA 20 2D 7F CB EA   15 F2 72 F2 CA 75 38 E0  .^. -.....r..u8.

0160: 2A 5E AB D3 BF E8 BF D3   64 F0 33 8D C6 A4 0E CD  *^......d.3.....

0170: EB 70 CD 05 F4 84 24 E6   8F B3 DA 9F 16 5E F9 2E  .p....$......^..

0180: A9 D2 50 EC D6 B6 1F E3   DF F5 8D D2 98 54 06 BA  ..P..........T..

0190: D9 FD EA 4A 90 A7 FC BF   E4 CD 71 5B F9 C1 37 2A  ...J......q[..7*

01A0: 3A 9D 67 F2 21 00 24 5F   A7 A8 8B 48 7D 1C CF 5B  :.g.!.$_...H...[

01B0: 4B 7D F0 26 DC B8 BC 39   7C E8 3C 99 AC 42 9B 19  K..&...9..<..B..

01C0: CA E9 37 E5 9E 2C 6A 41   C0 F7 60 0F D4 89 C4 AD  ..7..,jA..`.....

01D0: D1 28 47 97 BC 61 8D 9A   03 12 F8 4C 7B 14 65 14  .(G..a.....L..e.

01E0: 96 9C B9 79 DF 12 8C 9E   E7 10 F9 DC 9D 5F 6C 20  ...y........._l

01F0: 0B EA 5C 20 4E 9A C8 05   2C 46 2A 54 68 BE 49 CC  ..\ N...,F*Th.I.

0200: A1 60 0D B5 A8 D8 F2 66   C3 4C EA D3 C4 65 DE 30  .`.....f.L...e.0

0210: E6 F8 72 E5 8E CD 4C 65   C4 8D 47 F6 43 9E 90 DF  ..r...Le..G.C...

0220: A5 F3 1E F9 02 03 01 00   01 A3 46 30 44 30 09 06  ..........F0D0..

0230: 03 55 1D 13 04 02 30 00   30 0B 06 03 55 1D 0F 04  .U....0.0...U...

0240: 04 03 02 03 B8 30 2A 06   03 55 1D 11 04 23 30 21  .....0*..U...#0!

0250: 82 1F 72 62 73 2D 77 69   74 68 2D 69 70 73 65 63  ..rbs-with-ipsec

0260: 2E 61 74 2E 73 6F 6D 65   2E 73 69 74 65 2E 63 6F  .at.some.site.co

0270: 6D 30 0D 06 09 2A 86 48   86 F7 0D 01 01 0B 05 00  m0...*.H........

0280: 03 82 01 01 00 10 3E 03   87 6C DD 61 CB 90 24 46  ......>..l.a..$F

0290: 28 E8 4D 72 1D 70 A1 06   E6 BC 12 38 C8 E8 79 EE  (.Mr.p.....8..y.

02A0: EB 08 68 3C F6 DC 04 03   A5 20 A9 61 26 D4 B0 51  ..h<..... .a&..Q

02B0: 24 87 4D FB D6 5D 49 37   3D CB 79 E4 A2 3B 04 AD  $.M..]I7=.y..;..

02C0: 0C C9 57 2E CF 62 08 A9   E0 14 CB AF C8 35 F1 F5  ..W..b.......5..

02D0: C0 FC 15 7B 40 E4 0C 16   E8 B7 B5 27 DA EF F7 7B  [email protected]'....

02E0: D6 03 3E D3 DB EF D5 3D   E4 9F F3 A5 9B 0F 27 AD  ..>....=......'.

02F0: 0C FB C8 7C 65 BD A6 45   A9 70 53 6E 36 3D 7E FC  ....e..E.pSn6=..

0300: 3D 14 EA 95 E2 D0 A6 6A   97 C4 67 B7 9A 76 9B 75  =......j..g..v.u

0310: AC 17 20 80 F2 65 C7 79   61 9F 80 FE 7A 49 BD 79  .. ..e.ya...zI.y

0320: 9E A5 65 02 43 92 C6 CA   99 5D 11 BE 7B 62 BB 02  ..e.C....]...b..

0330: 14 9A BA A2 6F B9 EA 95   A0 D0 16 09 2A 48 AE DE  ....o.......*H..

0340: 3C 05 70 BB EE 15 2F 48   56 6B 86 BA 8E 5D 29 F5  <.p.../HVk...]).

0350: F1 F4 2C F7 9C EA D5 A5   C2 6F 55 AD 24 8A A5 A2  ..,......oU.$...

0360: 3D 58 0E A3 A7 7F 94 EC   34 F8 09 0E 32 9A F5 15  =X......4...2...

0370: 17 78 4E 64 ED F5 18 D5   39 A9 9D 3D CC D4 8E 6C  .xNd....9..=...l

0380: 10 9B 56 D1 89 00 03 43   30 82 03 3F 30 82 02 27  ..V....C0..?0..'

0390: A0 03 02 01 02 02 09 00   B9 F2 25 92 16 64 EB 8E  ..........%..d..

03A0: 30 0D 06 09 2A 86 48 86   F7 0D 01 01 0B 05 00 30  0...*.H........0

03B0: 56 31 0B 30 09 06 03 55   04 06 13 02 53 45 31 12  V1.0...U....SE1.

03C0: 30 10 06 03 55 04 08 13   09 53 74 6F 63 6B 68 6F  0...U....Stockho

03D0: 6C 6D 31 0E 30 0C 06 03   55 04 07 13 05 4B 69 73  lm1.0...U....Kis

03E0: 74 61 31 12 30 10 06 03   55 04 0A 13 09 43 65 6E  ta1.0...U....Cen

03F0: 6F 62 79 74 65 73 31 0F   30 0D 06 03 55 04 03 14  obytes1.0...U...

0400: 06 43 41 5F 4C 41 42 30   1E 17 0D 31 36 30 31 31  .CA_LAB0...16011

0410: 35 31 33 30 39 35 32 5A   17 0D 34 33 30 36 30 31  5130952Z..430601

0420: 31 33 30 39 35 32 5A 30   56 31 0B 30 09 06 03 55  130952Z0V1.0...U

0430: 04 06 13 02 53 45 31 12   30 10 06 03 55 04 08 13  ....SE1.0...U...

0440: 09 53 74 6F 63 6B 68 6F   6C 6D 31 0E 30 0C 06 03  .Stockholm1.0...

0450: 55 04 07 13 05 4B 69 73   74 61 31 12 30 10 06 03  U....Kista1.0...

0460: 55 04 0A 13 09 43 65 6E   6F 62 79 74 65 73 31 0F  U....Cenobytes1.

0470: 30 0D 06 03 55 04 03 14   06 43 41 5F 4C 41 42 30  0...U....CA_LAB0

0480: 82 01 22 30 0D 06 09 2A   86 48 86 F7 0D 01 01 01  .."0...*.H......

0490: 05 00 03 82 01 0F 00 30   82 01 0A 02 82 01 01 00  .......0........

04A0: B4 CE 13 C5 01 E8 6B E1   24 3B 75 BD 85 25 55 E3  ......k.$;u..%U.

04B0: DD 73 8A B9 B2 9B 7A 43   41 C0 4B 36 90 E9 61 BB  .s....zCA.K6..a.

04C0: 49 DA 7E B5 91 3D F9 A9   F2 FE 61 AF 02 6B 10 88  I....=....a..k..

04D0: 37 A9 AA 1F 5A A7 AE FF   A0 E2 FE AF 12 FA 52 9E  7...Z.........R.

04E0: 56 9B 98 0F D8 B6 EB 1C   89 DF 2F C7 38 46 FD 01  V........./.8F..

04F0: 76 C2 A0 22 B8 53 58 69   22 61 B8 35 49 16 F5 D0  v..".SXi"a.5I...

0500: DC EF 88 D0 B3 AD 81 5D   BB C0 21 81 72 C6 61 1E  .......]..!.r.a.

0510: 55 31 EF 14 AD 0F D0 00   AE 50 0D DE F6 FA D2 B8  U1.......P......

0520: 27 DD 08 41 EE 39 5E 61   C4 5C B1 18 67 B6 63 CB  '..A.9^a.\..g.c.

0530: 6D 02 15 F6 99 41 69 2F   C3 96 60 2A 54 44 66 FC  m....Ai/..`*TDf.

0540: F5 FF 34 F0 A6 77 52 90   D7 9E 84 4B 38 E2 D5 70  ..4..wR....K8..p

0550: 20 ED B3 8B 05 29 D7 D7   CA 90 86 29 25 5E 76 8D   ....).....)%^v.

0560: AA 06 B8 6D 1C E2 2B 6A   6D EF 6A 4E D7 2D 47 2B  ...m..+jm.jN.-G+

0570: 64 64 96 E9 CA D6 AB 41   7B E3 D9 0B EA DB 2D F8  dd.....A......-.

0580: 55 F8 24 7D 3A 8A C6 FF   26 EF C8 14 F9 98 F3 12  U.$.:...&.......

0590: BA 09 C6 3C C8 F3 4E B2   99 DF A7 97 5B 5B 02 8F  ...<..N.....[[..

05A0: 02 03 01 00 01 A3 10 30   0E 30 0C 06 03 55 1D 13  .......0.0...U..

05B0: 04 05 30 03 01 01 FF 30   0D 06 09 2A 86 48 86 F7  ..0....0...*.H..

05C0: 0D 01 01 0B 05 00 03 82   01 01 00 6D 7C B2 F1 3E  ...........m...>

05D0: 8A 21 1E ED C7 7D 7B 4F   8F E7 DD A2 2E 14 FD CB  .!.....O........

05E0: C1 C4 47 B7 5F 24 10 17   3C 68 12 FD 23 67 83 47  ..G._$..<h..#g.G

05F0: B4 9A FA 95 CC 64 32 AF   97 5F 91 CE 1E 04 DD 0A  .....d2.._......

0600: 39 32 09 32 0B 96 58 B7   63 71 96 5D E5 75 FE C8  92.2..X.cq.].u..

0610: 3F FE 56 0A 0D 52 9C B0   F4 05 47 31 49 98 58 63  ?.V..R....G1I.Xc

0620: C0 49 39 E0 ED FD 13 EB   9D FB 3A 33 CC 7D FE 87  .I9.......:3....

0630: 88 27 8B 49 14 49 CD A3   FF 3D FB 42 94 29 AF 85  .'.I.I...=.B.)..

0640: 7C 60 8B 93 03 F5 8A 72   DF 01 B7 02 45 9B 30 E1  .`.....r....E.0.

0650: 3E E1 6E D7 38 C7 E6 09   2F C4 69 B5 5D 3F 0D B0  >.n.8.../.i.]?..

0660: AE D1 4D 47 45 01 EA 0D   EA 5C 59 52 74 EB C4 D4  ..MGE....\YRt...

0670: 62 29 1F BF D7 3F 62 A0   DA 98 DB CF 23 FC 9F 86  b)...?b.....#...

0680: CC C0 DB 46 F5 6F CD C2   29 97 7F D9 2C 22 B9 4E  ...F.o..)...,".N

0690: CE 84 90 C7 16 88 D9 8B   94 2D B9 29 C6 8F 68 30  .........-.)..h0

06A0: F1 58 96 92 45 EF FC 08   9A 95 D3 62 38 A7 1B 89  .X..E......b8...

06B0: 8E DB 9F 46 E2 1A 75 8C   C0 B9 43 B8 B2 FD 54 E2  ...F..u...C...T.

06C0: 5F 73 70 34 4A 08 BC 0C   0F 9B 03                 _sp4J......

[Raw read]: length = 5

0000: 16 03 03 01 4D                                     ....M

[Raw read]: length = 333

0000: 0C 00 01 49 03 00 17 41   04 96 62 9C 1A 32 D3 87  ...I...A..b..2..

0010: AC 1E AD 44 FC AA ED 73   B4 DE AB 91 CF F0 4F 55  ...D...s......OU

0020: 32 8A 43 49 11 B2 66 FF   1C 6F 27 45 BF 2D FD F2  2.CI..f..o'E.-..

0030: E3 55 81 CE CA 3D CD B3   F5 E6 59 89 06 49 D5 D4  .U...=....Y..I..

0040: 66 61 F0 76 53 B2 74 4A   3D 06 01 01 00 CD 91 C3  fa.vS.tJ=.......

0050: 96 06 1D 57 62 A9 AC 2C   86 F3 97 A0 48 AA 9B 9C  ...Wb..,....H...

0060: 2F 63 A8 B7 32 CC AD 6B   7D C8 5C 7F 0F AD B3 CD  /c..2..k..\.....

0070: B8 E1 6E 32 0E 9F A4 10   BC 9C 64 92 CA 1A F8 99  ..n2......d.....

0080: AC F9 39 23 10 3A 9E E7   5B 28 DE C7 CC A7 F2 C1  ..9#.:..[(......

0090: B9 9F E0 C6 BC D2 77 1D   4C 6A 82 5F C7 CD E8 27  ......w.Lj._...'

00A0: 0B 45 41 C4 B1 9C A1 72   63 5D 9A B9 E0 FC D0 1B  .EA....rc]......

00B0: A3 5A A9 F0 4D C6 2D C9   78 CD 2D 47 F2 45 B6 25  .Z..M.-.x.-G.E.%

00C0: 19 4A D6 DB 2D A3 E1 1B   7A E8 9D 4E FA 3E 8B BA  .J..-...z..N.>..

00D0: C9 D4 BF 0F BE 6D D8 CF   C4 6F 3A CC C3 41 73 CC  .....m...o:..As.

00E0: 58 40 03 16 FE 34 F5 3B   86 21 38 E8 CD 43 A0 42  [email protected];.!8..C.B

00F0: 01 54 18 33 53 E7 9A F8   75 BC 8A BD 41 C5 47 39  .T.3S...u...A.G9

0100: FB 69 BD 5D 66 B9 D1 35   E2 A1 E7 09 64 D7 1A 8C  .i.]f..5....d...

0110: 78 53 A2 C0 A5 F4 5A 21   26 3D 41 B8 3F DE F4 2F  xS....Z!&=A.?../

0120: 18 C4 79 E0 58 91 65 11   EE A4 5E C4 68 1C 0C 62  ..y.X.e...^.h..b

0130: 67 C1 F3 B5 F9 1C AB A8   19 B6 C9 AE 52 99 76 AE  g...........R.v.

0140: 66 BD 7B 24 1D 22 65 6C   A9 78 01 20 B4           f..$."el.x. .

main, READ: TLSv1.2 Handshake, length = 333

*** ECDH ServerKeyExchange

Signature Algorithm SHA512withRSA

Server key: Sun EC public key, 256 bits

  public x coord: 68021155678579585560041481849419628180159457460825428734511532171171669147420

  public y coord: 50276114602960189667307335505392305561676251578664006000996539747365069015613

  parameters: secp256r1 [NIST P-256, X9.62 prime256v1] (1.2.840.10045.3.1.7)

[read] MD5 and SHA1 hashes:  len = 333

0000: 0C 00 01 49 03 00 17 41   04 96 62 9C 1A 32 D3 87  ...I...A..b..2..

0010: AC 1E AD 44 FC AA ED 73   B4 DE AB 91 CF F0 4F 55  ...D...s......OU

0020: 32 8A 43 49 11 B2 66 FF   1C 6F 27 45 BF 2D FD F2  2.CI..f..o'E.-..

0030: E3 55 81 CE CA 3D CD B3   F5 E6 59 89 06 49 D5 D4  .U...=....Y..I..

0040: 66 61 F0 76 53 B2 74 4A   3D 06 01 01 00 CD 91 C3  fa.vS.tJ=.......

0050: 96 06 1D 57 62 A9 AC 2C   86 F3 97 A0 48 AA 9B 9C  ...Wb..,....H...

0060: 2F 63 A8 B7 32 CC AD 6B   7D C8 5C 7F 0F AD B3 CD  /c..2..k..\.....

0070: B8 E1 6E 32 0E 9F A4 10   BC 9C 64 92 CA 1A F8 99  ..n2......d.....

0080: AC F9 39 23 10 3A 9E E7   5B 28 DE C7 CC A7 F2 C1  ..9#.:..[(......

0090: B9 9F E0 C6 BC D2 77 1D   4C 6A 82 5F C7 CD E8 27  ......w.Lj._...'

00A0: 0B 45 41 C4 B1 9C A1 72   63 5D 9A B9 E0 FC D0 1B  .EA....rc]......

00B0: A3 5A A9 F0 4D C6 2D C9   78 CD 2D 47 F2 45 B6 25  .Z..M.-.x.-G.E.%

00C0: 19 4A D6 DB 2D A3 E1 1B   7A E8 9D 4E FA 3E 8B BA  .J..-...z..N.>..

00D0: C9 D4 BF 0F BE 6D D8 CF   C4 6F 3A CC C3 41 73 CC  .....m...o:..As.

00E0: 58 40 03 16 FE 34 F5 3B   86 21 38 E8 CD 43 A0 42  [email protected];.!8..C.B

00F0: 01 54 18 33 53 E7 9A F8   75 BC 8A BD 41 C5 47 39  .T.3S...u...A.G9

0100: FB 69 BD 5D 66 B9 D1 35   E2 A1 E7 09 64 D7 1A 8C  .i.]f..5....d...

0110: 78 53 A2 C0 A5 F4 5A 21   26 3D 41 B8 3F DE F4 2F  xS....Z!&=A.?../

0120: 18 C4 79 E0 58 91 65 11   EE A4 5E C4 68 1C 0C 62  ..y.X.e...^.h..b

0130: 67 C1 F3 B5 F9 1C AB A8   19 B6 C9 AE 52 99 76 AE  g...........R.v.

0140: 66 BD 7B 24 1D 22 65 6C   A9 78 01 20 B4           f..$."el.x. .

[Raw read]: length = 5

0000: 16 03 03 00 7E                                     .....

[Raw read]: length = 126

0000: 0D 00 00 7A 03 40 01 02   00 18 06 03 06 01 05 03  [email protected]

0010: 05 01 04 03 04 01 03 03   03 01 02 03 02 01 02 02  ................

0020: 01 01 00 5A 00 58 30 56   31 0B 30 09 06 03 55 04  ...Z.X0V1.0...U.

0030: 06 13 02 53 45 31 12 30   10 06 03 55 04 08 13 09  ...SE1.0...U....

0040: 53 74 6F 63 6B 68 6F 6C   6D 31 0E 30 0C 06 03 55  Stockholm1.0...U

0050: 04 07 13 05 4B 69 73 74   61 31 12 30 10 06 03 55  ....Kista1.0...U

0060: 04 0A 13 09 43 65 6E 6F   62 79 74 65 73 31 0F 30  ....Cenobytes1.0

0070: 0D 06 03 55 04 03 14 06   43 41 5F 4C 41 42        ...U....CA_LAB

main, READ: TLSv1.2 Handshake, length = 126

*** CertificateRequest

Cert Types: ECDSA, RSA, DSS

Supported Signature Algorithms: SHA512withECDSA, SHA512withRSA, SHA384withECDSA, SHA384withRSA, SHA256withECDSA, SHA256withRSA, SHA224withECDSA, SHA224withRSA, SHA1withECDSA, SHA1withRSA, SHA1withDSA, MD5withRSA

Cert Authorities:

<CN=CA_LAB, O=Cenobytes, L=Kista, ST=Stockholm, C=SE>

[read] MD5 and SHA1 hashes:  len = 126

0000: 0D 00 00 7A 03 40 01 02   00 18 06 03 06 01 05 03  [email protected]

0010: 05 01 04 03 04 01 03 03   03 01 02 03 02 01 02 02  ................

0020: 01 01 00 5A 00 58 30 56   31 0B 30 09 06 03 55 04  ...Z.X0V1.0...U.

0030: 06 13 02 53 45 31 12 30   10 06 03 55 04 08 13 09  ...SE1.0...U....

0040: 53 74 6F 63 6B 68 6F 6C   6D 31 0E 30 0C 06 03 55  Stockholm1.0...U

0050: 04 07 13 05 4B 69 73 74   61 31 12 30 10 06 03 55  ....Kista1.0...U

0060: 04 0A 13 09 43 65 6E 6F   62 79 74 65 73 31 0F 30  ....Cenobytes1.0

0070: 0D 06 03 55 04 03 14 06   43 41 5F 4C 41 42        ...U....CA_LAB

[Raw read]: length = 5

0000: 16 03 03 00 04                                     .....

[Raw read]: length = 4

0000: 0E 00 00 00                                        ....

main, READ: TLSv1.2 Handshake, length = 4

*** ServerHelloDone

[read] MD5 and SHA1 hashes:  len = 4

0000: 0E 00 00 00                                        ....

*** Certificate chain

***

*** ECDHClientKeyExchange

ECDH Public value:  { 4, 247, 41, 95, 194, 142, 70, 134, 129, 12, 61, 179, 184, 112, 87, 135, 193, 206, 62, 46, 89, 224, 251, 89, 110, 174, 99, 107, 83, 131, 232, 201, 127, 33, 156, 77, 245, 118, 129, 126, 220, 148, 131, 154, 199, 211, 56, 230, 136, 226, 250, 218, 22, 201, 218, 55, 82, 87, 135, 191, 249, 93, 23, 161, 167 }

[write] MD5 and SHA1 hashes:  len = 77

0000: 0B 00 00 03 00 00 00 10   00 00 42 41 04 F7 29 5F  ..........BA..)_

0010: C2 8E 46 86 81 0C 3D B3   B8 70 57 87 C1 CE 3E 2E  ..F...=..pW...>.

0020: 59 E0 FB 59 6E AE 63 6B   53 83 E8 C9 7F 21 9C 4D  Y..Yn.ckS....!.M

0030: F5 76 81 7E DC 94 83 9A   C7 D3 38 E6 88 E2 FA DA  .v........8.....

0040: 16 C9 DA 37 52 57 87 BF   F9 5D 17 A1 A7           ...7RW...]...

main, WRITE: TLSv1.2 Handshake, length = 77

[Raw write]: length = 82

0000: 16 03 03 00 4D 0B 00 00   03 00 00 00 10 00 00 42  ....M..........B

0010: 41 04 F7 29 5F C2 8E 46   86 81 0C 3D B3 B8 70 57  A..)_..F...=..pW

0020: 87 C1 CE 3E 2E 59 E0 FB   59 6E AE 63 6B 53 83 E8  ...>.Y..Yn.ckS..

0030: C9 7F 21 9C 4D F5 76 81   7E DC 94 83 9A C7 D3 38  ..!.M.v........8

0040: E6 88 E2 FA DA 16 C9 DA   37 52 57 87 BF F9 5D 17  ........7RW...].

0050: A1 A7                                              ..

SESSION KEYGEN:

PreMaster Secret:

0000: 1C 10 28 4B F7 86 CD 01   84 38 F8 CF 6C EE CC F5  ..(K.....8..l...

0010: CC 41 1D F9 B9 C6 52 D8   7C 87 00 90 D0 C1 29 90  .A....R.......).

CONNECTION KEYGEN:

Client Nonce:

0000: 57 C6 E5 5F 4D B1 8B AA   6A 4F AB 66 F1 46 A5 4C  W.._M...jO.f.F.L

0010: EC D0 16 A2 F4 E5 28 18   5C B5 13 0A 75 AD D6 F0  ......(.\...u...

Server Nonce:

0000: 57 C6 E5 5F C5 D0 18 FC   77 4F DD 3C 3D FE F8 33  W.._....wO.<=..3

0010: CF C4 6A 31 2B 85 80 E0   1E CC 40 5A CB 5E 43 40  ..j1+.....@Z.^[email protected]

Master Secret:

0000: 9D ED B0 CB 7B 68 41 1C   CF FB 5C 9A 7F B8 91 23  .....hA...\....#

0010: 89 47 32 1F 5A BB A7 9F   95 F9 8B 1A 30 AC E5 FE  .G2.Z.......0...

0020: 0F AB 62 B7 CF D6 E0 F7   38 46 D0 FF 91 CF 7A EB  ..b.....8F....z.

Client MAC write Secret:

0000: D6 A5 67 6D 31 73 6B 9B   2F 35 1A 97 9D E3 60 74  ..gm1sk./5....`t

0010: 7E 00 92 DF                                        ....

Server MAC write Secret:

0000: DA 27 37 BB 9F 6C AB D2   6B BF 66 E0 C4 37 BB DE  .'7..l..k.f..7..

0010: 3D DD 47 20                                        =.G

Client write key:

0000: F3 69 A5 5C E1 A2 E0 55   45 7A DC 93 67 63 AC 31  .i.\...UEz..gc.1

Server write key:

0000: F3 FD 78 9D 6E D4 39 09   5F 24 A6 B2 23 DA 4D 17  ..x.n.9._$..#.M.

... no IV derived for this protocol

main, WRITE: TLSv1.2 Change Cipher Spec, length = 1

[Raw write]: length = 6

0000: 14 03 03 00 01 01                                  ......

*** Finished

verify_data:  { 60, 8, 86, 250, 200, 72, 182, 77, 60, 109, 241, 195 }

***

[write] MD5 and SHA1 hashes:  len = 16

0000: 14 00 00 0C 3C 08 56 FA   C8 48 B6 4D 3C 6D F1 C3  ....<.V..H.M<m..

Padded plaintext before ENCRYPTION:  len = 64

0000: 97 0D 7B A4 01 C0 31 E4   4C F3 83 01 76 6E 04 E7  ......1.L...vn..

0010: 14 00 00 0C 3C 08 56 FA   C8 48 B6 4D 3C 6D F1 C3  ....<.V..H.M<m..

0020: AF FC 1B C0 82 40 3D 83   CE 3F 84 70 3B BC C3 E7  .....@=..?.p;...

0030: F9 12 B4 62 0B 0B 0B 0B   0B 0B 0B 0B 0B 0B 0B 0B  ...b............

main, WRITE: TLSv1.2 Handshake, length = 64

main, waiting for close_notify or alert: state 1

[Raw read]: length = 5

0000: 15 03 03 00 02                                     .....

[Raw read]: length = 2

0000: 02 28                                              .(

main, READ: TLSv1.2 Alert, length = 2

main, RECV TLSv1.2 ALERT:  fatal, handshake_failure

%% Invalidated:  [Session-1, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA]

main, called closeSocket()

main, Exception while waiting for close javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

main, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)

    at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)

    at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1959)

    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)

    at sun.security.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1705)

    at sun.security.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:122)

    at sun.security.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:972)

    at sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:1087)

    at sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1006)

    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:285)

    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)

    at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)

    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)

    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)

    at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)

    at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)

    at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:136)

    at test_client.SSLPoke.main(SSLPoke.java:47)

 
This discussion has been closed.