Hi,
I have EC200U board on which I am trying to establish https connection with server that supports only TLS SNI extension.
https client configuration is as follows
*static http_client_t* configure_http_client(http_client_t *http_client,*
* int profile_idx,*
* uint8_t sim_no)*
*{*
* ql_httpc_setopt(http_client, HTTP_CLIENT_OPT_BASIC_AUTH, sys_conf.credentials);*
* ql_httpc_setopt(http_client, HTTP_CLIENT_OPT_SIM_ID, sim_no);*
* ql_httpc_setopt(http_client, HTTP_CLIENT_OPT_PDPCID, profile_idx);*
* ql_httpc_setopt(http_client, HTTP_CLIENT_OPT_METHOD, HTTP_METHOD_GET);*
* ql_httpc_setopt(http_client, HTTP_CLIENT_OPT_SSLCTXID, 1);*
* ql_httpc_setopt(http_client, HTTP_CLIENT_OPT_SSL_VERIFY_LEVEL, HTTPS_VERIFY_SERVER);*
* ql_httpc_setopt(http_client, HTTP_CLIENT_OPT_SSL_CACERT_PATH, ROOT_CRT_PATH);*
* return http_client;*
*}*
Client Hello with current config does not include SNI. Following is the dump of the same.
0000 00 50 48 2c 10 58 00 50 4c 1e 38 c1 08 00 60 00 .PH,.X.PL.8...`.
0010 00 00 01 a2 06 ff 24 09 40 c0 00 54 3b 32 80 00 ......$.@..T;2..
0020 00 00 00 00 00 00 24 05 02 00 0a 80 e0 01 00 00 ......$.........
0030 00 00 00 00 00 09 da e3 01 bb 00 00 19 6e 61 7c .............na|
0040 87 b7 50 18 80 e8 19 c9 00 00 16 03 03 01 89 01 ..P.............
0050 00 01 85 03 03 66 f2 85 e9 71 4a 10 f8 b4 6f 47 .....f...qJ...oG
0060 14 08 dd bb c4 1f 9c b3 ba 70 03 1a 70 e2 35 6f .........p..p.5o
0070 14 5c 01 4c 3e 00 01 14 cc a8 cc a9 cc aa c0 2c .\.L>..........,
0080 c0 30 00 9f c0 ad c0 9f c0 24 c0 28 00 6b c0 0a .0.......$.(.k..
0090 c0 14 00 39 c0 af c0 a3 c0 87 c0 8b c0 7d c0 73 ...9.........}.s
00a0 c0 77 00 c4 00 88 c0 2b c0 2f 00 9e c0 ac c0 9e .w.....+./......
00b0 c0 23 c0 27 00 67 c0 09 c0 13 00 33 c0 ae c0 a2 .#.'.g.....3....
00c0 c0 86 c0 8a c0 7c c0 72 c0 76 00 be 00 45 c0 08 .....|.r.v...E..
00d0 c0 12 00 16 cc ac cc ad 00 ab c0 a7 c0 38 00 b3 .............8..
00e0 c0 36 00 91 c0 91 c0 9b c0 97 c0 ab 00 aa c0 a6 .6..............
00f0 c0 37 00 b2 c0 35 00 90 c0 90 c0 96 c0 9a c0 aa .7...5..........
0100 c0 34 00 8f 00 9d c0 9d 00 3d 00 35 c0 32 c0 2a .4.......=.5.2.*
0110 c0 0f c0 2e c0 26 c0 05 c0 a1 c0 7b 00 c0 00 84 .....&.....{....
0120 c0 8d c0 79 c0 89 c0 75 00 9c c0 9c 00 3c 00 2f ...y...u.....<./
0130 c0 31 c0 29 c0 0e c0 2d c0 25 c0 04 c0 a0 c0 7a .1.)...-.%.....z
0140 00 ba 00 41 c0 8c c0 78 c0 88 c0 74 00 0a c0 0d ...A...x...t....
0150 c0 03 cc ae 00 ad 00 b7 00 95 c0 93 c0 99 00 ac ................
0160 00 b6 00 94 c0 92 c0 98 00 93 cc ab 00 a9 c0 a5 ................
0170 00 af 00 8d c0 8f c0 95 c0 a9 00 a8 c0 a4 00 ae ................
0180 00 8c c0 8e c0 94 c0 a8 00 8b 00 ff 01 00 00 48 ...............H
0190 00 0d 00 16 00 14 06 03 06 01 05 03 05 01 04 03 ................
01a0 04 01 03 03 03 01 02 03 02 01 00 0a 00 18 00 16 ................
01b0 00 19 00 1c 00 18 00 1b 00 17 00 16 00 1a 00 15 ................
01c0 00 14 00 13 00 12 00 0b 00 02 01 00 00 16 00 00 ................
01d0 00 17 00 00 00 23 00 00 .....#..
Can you help me with API that I can use to enable SNI with the https connection that I am configuring?
