Guest User

Untitled

a guest
May 11th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 110.77 KB | None | 0 0
  1. scandone
  2. state: 0 -> 2 (b0)
  3. state: 2 -> 3 (0)
  4. state: 3 -> 5 (10)
  5. add 0
  6. aid 4
  7. cnt
  8.  
  9. connected with Stellaripl, channel 1
  10. dhcp client start...
  11. mgos_wifi_on_change_ Wifi: connected
  12. ip:192.168.1.13,mask:255.255.255.0,gw:192.168.1.1
  13. mgos_wifi_on_change_ WiFi: ready, IP 192.168.1.13, DNS 192.168.1.1
  14. mqtt_global_reconnec MQTT connecting after 1922 ms
  15. mgos_sntp_retry      SNTP next query in 915 ms
  16. mgos_sntp_query      SNTP query to pool.ntp.org
  17. mgos_sntp_retry      SNTP next query in 1955 ms
  18. mongoose_poll        New heap free LWM: 41952
  19. mgos_sntp_ev         SNTP query sent
  20. mongoose_poll        New heap free LWM: 41816
  21. mgos_sntp_ev         SNTP reply from 123.108.200.124: time 1494487484.164740, local 7.477295, delta 1494487476.687445
  22. mgos_sntp_ev         SNTP close
  23. mgos_sntp_retry      SNTP next query in 7439164 ms
  24. mqtt_global_connect  MQTT connecting to a2wvu7vrfjdfdx.iot.us-west-2.amazonaws.com:8883
  25. set_spiffs_errno     aws-iot-c74e641add.crt.pem: res = 1, e = -10002
  26. set_spiffs_errno     fstat: res = 0, e = -10002
  27. set_spiffs_errno     fstat: res = 0, e = -10002
  28. set_spiffs_errno     lseek: res = 0, e = -10002
  29. set_spiffs_errno     lseek: res = 1024, e = -10002
  30. set_spiffs_errno     read: res = 117, e = -10002
  31. set_spiffs_errno     lseek: res = 0, e = -10002
  32. set_spiffs_errno     read: res = 1024, e = -10002
  33. set_spiffs_errno     read: res = 117, e = -10002
  34. set_spiffs_errno     close: res = 0, e = -10002
  35. set_spiffs_errno     ca-verisign-ecc-g2.crt.pem: res = 1, e = -10002
  36. set_spiffs_errno     fstat: res = 0, e = -10002
  37. set_spiffs_errno     fstat: res = 0, e = -10002
  38. set_spiffs_errno     lseek: res = 0, e = -10002
  39. set_spiffs_errno     lseek: res = 1024, e = -10002
  40. set_spiffs_errno     read: res = 566, e = -10002
  41. set_spiffs_errno     lseek: res = 0, e = -10002
  42. set_spiffs_errno     read: res = 1024, e = -10002
  43. set_spiffs_errno     read: res = 566, e = -10002
  44. set_spiffs_errno     close: res = 0, e = -10002
  45. mongoose_poll        New heap free LWM: 37792
  46. mongoose_poll        New heap free LWM: 35680
  47. mongoose_poll        New heap free LWM: 35000
  48. mg_ssl_mbed_log      0x3fff0d8c => handshake
  49. mg_ssl_mbed_log      0x3fff0d8c client state: 0
  50. mg_ssl_mbed_log      0x3fff0d8c => flush output
  51. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  52. mg_ssl_mbed_log      0x3fff0d8c client state: 1
  53. mg_ssl_mbed_log      0x3fff0d8c => flush output
  54. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  55. mg_ssl_mbed_log      0x3fff0d8c => write client hello
  56. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 0 => 145
  57. mg_ssl_mbed_log      0x3fff0d8c client hello, max version: [3:3]
  58. mg_ssl_mbed_log      0x3fff0d8c dumping 'client hello, random bytes' (32 bytes)
  59. mg_ssl_mbed_log      0x3fff0d8c 0000:  e9 7d e9 f6 aa 8d 70 11 b0 2c 6a 1d 95 40 da f1  .}....p..,j..@..
  60. mg_ssl_mbed_log      0x3fff0d8c 0010:  7b 1e c8 46 e0 35 d8 6e 09 ca 28 55 40 b0 58 de  {..F.5.n..(U@.X.
  61. mg_ssl_mbed_log      0x3fff0d8c client hello, session id len.: 0
  62. mg_ssl_mbed_log      0x3fff0d8c dumping 'client hello, session id' (0 bytes)
  63. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: c02b
  64. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: c02f
  65. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: 009e
  66. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: 0067
  67. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: c02d
  68. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: c025
  69. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: c004
  70. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: c031
  71. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: c029
  72. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: c00e
  73. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: 009c
  74. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: 003c
  75. mg_ssl_mbed_log      0x3fff0d8c client hello, add ciphersuite: 002f
  76. mg_ssl_mbed_log      0x3fff0d8c client hello, got 14 ciphersuites
  77. mg_ssl_mbed_log      0x3fff0d8c client hello, compress len.: 1
  78. mg_ssl_mbed_log      0x3fff0d8c client hello, compress alg.: 0
  79. mg_ssl_mbed_log      0x3fff0d8c client hello, adding server name extension: a2wvu7vrfjdfdx.iot.us-west-2.amazonaws.com
  80. mg_ssl_mbed_log      0x3fff0d8c client hello, adding signature_algorithms extension
  81. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 145 => 155
  82. mg_ssl_mbed_log      0x3fff0d8c client hello, adding supported_elliptic_curves extension
  83. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 155 => 163
  84. mg_ssl_mbed_log      0x3fff0d8c client hello, adding supported_point_formats extension
  85. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 163 => 169
  86. mg_ssl_mbed_log      0x3fff0d8c client hello, adding encrypt_then_mac extension
  87. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 169 => 173
  88. mg_ssl_mbed_log      0x3fff0d8c client hello, adding extended_master_secret extension
  89. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 173 => 177
  90. mg_ssl_mbed_log      0x3fff0d8c client hello, total extension length: 91
  91. mg_ssl_mbed_log      0x3fff0d8c => write record
  92. mg_ssl_mbed_log      0x3fff0d8c output record: msgtype = 22, version = [3:3], msglen = 164
  93. mg_ssl_mbed_log      0x3fff0d8c => flush output
  94. mg_ssl_mbed_log      0x3fff0d8c message length: 169, out_left: 169
  95. ssl_socket_send      0x3fff0d8c 169 -> 169
  96. mg_ssl_mbed_log      0x3fff0d8c ssl->f_send() returned 169 (-0xffffff57)
  97. mg_ssl_mbed_log      0x3fff0d8c shrink out_buf 177 => 13
  98. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  99. mg_ssl_mbed_log      0x3fff0d8c <= write record
  100. mg_ssl_mbed_log      0x3fff0d8c <= write client hello
  101. mg_ssl_mbed_log      0x3fff0d8c client state: 2
  102. mg_ssl_mbed_log      0x3fff0d8c => flush output
  103. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  104. mg_ssl_mbed_log      0x3fff0d8c => parse server hello
  105. mg_ssl_mbed_log      0x3fff0d8c => read record
  106. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  107. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 0
  108. mg_ssl_mbed_log      0x3fff0d8c grow in_buf 0 => 13
  109. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  110. mg_ssl_mbed_log      0x3fff0d8c <= handshake
  111. mg_ssl_mbed_log      0x3fff0d8c => handshake
  112. mg_ssl_mbed_log      0x3fff0d8c client state: 2
  113. mg_ssl_mbed_log      0x3fff0d8c => flush output
  114. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  115. mg_ssl_mbed_log      0x3fff0d8c => parse server hello
  116. mg_ssl_mbed_log      0x3fff0d8c => read record
  117. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  118. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  119. ssl_socket_recv      0x3fff0d8c <- 5
  120. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  121. mg_ssl_mbed_log      0x3fff0d8c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  122. mg_ssl_mbed_log      0x3fff0d8c <= fetch input
  123. mg_ssl_mbed_log      0x3fff0d8c input record: msgtype = 22, version = [3:3], msglen = 2591
  124. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  125. mg_ssl_mbed_log      0x3fff0d8c in_left: 5, nb_want: 2596, in_buf_size: 13
  126. mg_ssl_mbed_log      0x3fff0d8c grow in_buf 13 => 2604
  127. ssl_socket_recv      0x3fff0d8c <- 1455
  128. mg_ssl_mbed_log      0x3fff0d8c in_left: 5, nb_want: 2596, in_buf_size: 2604
  129. mg_ssl_mbed_log      0x3fff0d8c ssl->f_recv(_timeout)() returned 1455 (-0xfffffa51)
  130. mg_ssl_mbed_log      0x3fff0d8c in_left: 1460, nb_want: 2596, in_buf_size: 2604
  131. mg_ssl_mbed_log      0x3fff0d8c <= handshake
  132. mg_ssl_mbed_log      0x3fff0d8c => handshake
  133. mg_ssl_mbed_log      0x3fff0d8c client state: 2
  134. mg_ssl_mbed_log      0x3fff0d8c => flush output
  135. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  136. mg_ssl_mbed_log      0x3fff0d8c => parse server hello
  137. mg_ssl_mbed_log      0x3fff0d8c => read record
  138. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  139. mg_ssl_mbed_log      0x3fff0d8c in_left: 1460, nb_want: 5, in_buf_size: 2604
  140. mg_ssl_mbed_log      0x3fff0d8c <= fetch input
  141. mg_ssl_mbed_log      0x3fff0d8c input record: msgtype = 22, version = [3:3], msglen = 2591
  142. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  143. mg_ssl_mbed_log      0x3fff0d8c in_left: 1460, nb_want: 2596, in_buf_size: 2604
  144. ssl_socket_recv      0x3fff0d8c <- 1136
  145. mg_ssl_mbed_log      0x3fff0d8c in_left: 1460, nb_want: 2596, in_buf_size: 2604
  146. mg_ssl_mbed_log      0x3fff0d8c ssl->f_recv(_timeout)() returned 1136 (-0xfffffb90)
  147. mg_ssl_mbed_log      0x3fff0d8c <= fetch input
  148. mg_ssl_mbed_log      0x3fff0d8c handshake message: msglen = 2591, type = 2, hslen = 81
  149. mg_ssl_mbed_log      0x3fff0d8c <= read record
  150. mg_ssl_mbed_log      0x3fff0d8c dumping 'server hello, version' (2 bytes)
  151. mg_ssl_mbed_log      0x3fff0d8c 0000:  03 03                                            ..
  152. mg_ssl_mbed_log      0x3fff0d8c server hello, current time: 1494487485
  153. mg_ssl_mbed_log      0x3fff0d8c dumping 'server hello, random bytes' (32 bytes)
  154. mg_ssl_mbed_log      0x3fff0d8c 0000:  59 14 11 bd be 3c 22 06 3a b6 35 3a 19 b9 1f 67  Y....<".:.5:...g
  155. mg_ssl_mbed_log      0x3fff0d8c 0010:  a3 5f 33 fa 84 1e f7 a7 83 75 98 40 8f de dc 35  ._3......u.@...5
  156. mg_ssl_mbed_log      0x3fff0d8c server hello, session id len.: 32
  157. mg_ssl_mbed_log      0x3fff0d8c dumping 'server hello, session id' (32 bytes)
  158. mg_ssl_mbed_log      0x3fff0d8c 0000:  59 14 11 bd b5 36 99 7b 8a be e7 e0 36 57 a7 de  Y....6.{....6W..
  159. mg_ssl_mbed_log      0x3fff0d8c 0010:  e2 f1 34 80 59 46 18 f6 6b 30 fc 10 e6 76 b1 b2  ..4.YF..k0...v..
  160. mg_ssl_mbed_log      0x3fff0d8c no session has been resumed
  161. mg_ssl_mbed_log      0x3fff0d8c server hello, chosen ciphersuite: c02b
  162. mg_ssl_mbed_log      0x3fff0d8c server hello, compress alg.: 0
  163. mg_ssl_mbed_log      0x3fff0d8c server hello, chosen ciphersuite: TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
  164. mg_ssl_mbed_log      0x3fff0d8c server hello, total extension length: 5
  165. mg_ssl_mbed_log      0x3fff0d8c found renegotiation extension
  166. mg_ssl_mbed_log      0x3fff0d8c <= parse server hello
  167. mg_ssl_mbed_log      0x3fff0d8c client state: 3
  168. mg_ssl_mbed_log      0x3fff0d8c => flush output
  169. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  170. mg_ssl_mbed_log      0x3fff0d8c => parse certificate
  171. mg_ssl_mbed_log      0x3fff0d8c => read record
  172. mg_ssl_mbed_log      0x3fff0d8c handshake message: msglen = 2510, type = 11, hslen = 2320
  173. mg_ssl_mbed_log      0x3fff0d8c <= read record
  174. mg_ssl_mbed_log      0x3fff0d8c peer certificate #1:
  175. mg_ssl_mbed_log      0x3fff0d8c cert. version     : 3
  176. mg_ssl_mbed_log      0x3fff0d8c serial number     : 20:88:52:7E:45:DF:8F:76:68:0D:39:EA:E2:26:12:D2
  177. mg_ssl_mbed_log      0x3fff0d8c issuer name       : C=US, O=Symantec Corporation, OU=Symantec Trust Network, CN=Symantec Class 3 ECC 256 bit SSL CA - G2
  178. mg_ssl_mbed_log      0x3fff0d8c subject name      : C=US, ST=Washington, L=Seattle, O=Amazon.com, Inc., CN=*.iot.us-west-2.amazonaws.com
  179. mg_ssl_mbed_log      0x3fff0d8c issued  on        : 2017-03-07 00:00:00
  180. mg_ssl_mbed_log      0x3fff0d8c expires on        : 2018-03-08 23:59:59
  181. mg_ssl_mbed_log      0x3fff0d8c signed using      : ECDSA with SHA256
  182. mg_ssl_mbed_log      0x3fff0d8c EC key size       : 256 bits
  183. mg_ssl_mbed_log      0x3fff0d8c basic constraints : CA=false
  184. mg_ssl_mbed_log      0x3fff0d8c subject alt name  : iot.us-west-2.amazonaws.com, *.iot.us-west-2.amazonaws.com
  185. mg_ssl_mbed_log      0x3fff0d8c key usage         : Digital Signature
  186. mg_ssl_mbed_log      0x3fff0d8c ext key usage     : TLS Web Server Authentication, TLS Web Client Authentication
  187. mg_ssl_mbed_log      0x3fff0d8c value of 'crt->eckey.Q(X)' (255 bits) is:
  188. mg_ssl_mbed_log      0x3fff0d8c  70 14 ad b7 d2 d6 20 cb 27 39 fb 86 1b de 9d d2
  189. mg_ssl_mbed_log      0x3fff0d8c  50 75 0b 71 35 9e 24 5f aa eb e4 d0 a2 31 90 56
  190. mg_ssl_mbed_log      0x3fff0d8c value of 'crt->eckey.Q(Y)' (254 bits) is:
  191. mg_ssl_mbed_log      0x3fff0d8c  34 c5 39 fc 2c 34 9d 25 c7 f7 b3 2f 8e ff 35 b7
  192. mg_ssl_mbed_log      0x3fff0d8c  7a 4f 48 e2 a7 48 fd 0a 84 81 0f 58 1b f5 0a b2
  193. mg_ssl_mbed_log      0x3fff0d8c peer certificate #2:
  194. mg_ssl_mbed_log      0x3fff0d8c cert. version     : 3
  195. mg_ssl_mbed_log      0x3fff0d8c serial number     : 3F:92:87:BE:9D:1D:A4:A3:7A:9D:F6:28:2E:77:5A:C4
  196. mg_ssl_mbed_log      0x3fff0d8c issuer name       : C=US, O=VeriSign, Inc., OU=VeriSign Trust Network, OU=(c) 2006 VeriSign, Inc. - For authorized use only, CN=VeriSign Class 3 Public Primary Certification Authority - G5
  197. mg_ssl_mbed_log      0x3fff0d8c subject name      : C=US, O=Symantec Corporation, OU=Symantec Trust Network, CN=Symantec Class 3 ECC 256 bit SSL CA - G2
  198. mg_ssl_mbed_log      0x3fff0d8c issued  on        : 2015-05-12 00:00:00
  199. mg_ssl_mbed_log      0x3fff0d8c expires on        : 2025-05-11 23:59:59
  200. mg_ssl_mbed_log      0x3fff0d8c signed using      : RSA with SHA-256
  201. mg_ssl_mbed_log      0x3fff0d8c EC key size       : 256 bits
  202. mg_ssl_mbed_log      0x3fff0d8c basic constraints : CA=true, max_pathlen=0
  203. mg_ssl_mbed_log      0x3fff0d8c subject alt name  :
  204. mg_ssl_mbed_log      0x3fff0d8c key usage         : Key Cert Sign, CRL Sign
  205. mg_ssl_mbed_log      0x3fff0d8c value of 'crt->eckey.Q(X)' (252 bits) is:
  206. mg_ssl_mbed_log      0x3fff0d8c  0f 1b a4 91 d7 e7 ac e7 d1 4e 4e b7 64 5b e1 8f
  207. mg_ssl_mbed_log      0x3fff0d8c  7f 6e 04 d3 ab 38 db 44 b7 40 5c 6d bd 96 96 37
  208. mg_ssl_mbed_log      0x3fff0d8c value of 'crt->eckey.Q(Y)' (256 bits) is:
  209. mg_ssl_mbed_log      0x3fff0d8c  df 79 89 86 67 f7 b1 1f 08 9e fd 63 3b 46 8c 9f
  210. mg_ssl_mbed_log      0x3fff0d8c  bd 53 e8 15 dc 97 3e 2b 81 46 ad 86 7f 0e 01 39
  211. ATCA ECDSA verify ok, verified
  212. mg_ssl_mbed_log      0x3fff0d8c <= parse certificate
  213. mg_ssl_mbed_log      0x3fff0d8c client state: 4
  214. mg_ssl_mbed_log      0x3fff0d8c => flush output
  215. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  216. mg_ssl_mbed_log      0x3fff0d8c => parse server key exchange
  217. mg_ssl_mbed_log      0x3fff0d8c => read record
  218. mg_ssl_mbed_log      0x3fff0d8c handshake message: msglen = 190, type = 12, hslen = 148
  219. mg_ssl_mbed_log      0x3fff0d8c <= read record
  220. mg_ssl_mbed_log      0x3fff0d8c dumping 'server key exchange' (144 bytes)
  221. mg_ssl_mbed_log      0x3fff0d8c 0000:  03 00 17 41 04 16 18 cd 6f 2f c8 4a ed b7 e7 cd  ...A....o/.J....
  222. mg_ssl_mbed_log      0x3fff0d8c 0010:  70 c6 58 ce d2 d9 93 03 65 24 4c a3 1b 58 f2 b7  p.X.....e$L..X..
  223. mg_ssl_mbed_log      0x3fff0d8c 0020:  ed 86 7d 68 d6 d0 55 3d 99 08 4e 6a c5 9b 01 a3  ..}h..U=..Nj....
  224. mg_ssl_mbed_log      0x3fff0d8c 0030:  5b 29 ef ee 77 51 fa 94 f5 08 0e 40 80 c4 94 53  [)..wQ.....@...S
  225. mg_ssl_mbed_log      0x3fff0d8c 0040:  21 11 31 a5 38 04 03 00 47 30 45 02 21 00 b7 5e  !.1.8...G0E.!..^
  226. mg_ssl_mbed_log      0x3fff0d8c 0050:  14 cf 38 b4 3f 6b a6 ec ea f4 03 19 dc d4 1d 97  ..8.?k..........
  227. mg_ssl_mbed_log      0x3fff0d8c 0060:  8c 58 e1 ae 44 f9 c7 da 08 3c 63 35 95 10 02 20  .X..D....<c5...
  228. mg_ssl_mbed_log      0x3fff0d8c 0070:  36 8e be 7b fd 17 19 b9 90 8e a3 40 0e eb 6f 5a  6..{.......@..oZ
  229. mg_ssl_mbed_log      0x3fff0d8c 0080:  4e 2b 72 c5 d8 0e 6a df 20 18 2e b9 eb cf 66 71  N+r...j. .....fq
  230. mg_ssl_mbed_log      0x3fff0d8c ECDH curve: secp256r1
  231. mg_ssl_mbed_log      0x3fff0d8c value of 'ECDH: Qp(X)' (253 bits) is:
  232. mg_ssl_mbed_log      0x3fff0d8c  16 18 cd 6f 2f c8 4a ed b7 e7 cd 70 c6 58 ce d2
  233. mg_ssl_mbed_log      0x3fff0d8c  d9 93 03 65 24 4c a3 1b 58 f2 b7 ed 86 7d 68 d6
  234. mg_ssl_mbed_log      0x3fff0d8c value of 'ECDH: Qp(Y)' (256 bits) is:
  235. mg_ssl_mbed_log      0x3fff0d8c  d0 55 3d 99 08 4e 6a c5 9b 01 a3 5b 29 ef ee 77
  236. mg_ssl_mbed_log      0x3fff0d8c  51 fa 94 f5 08 0e 40 80 c4 94 53 21 11 31 a5 38
  237. mg_ssl_mbed_log      0x3fff0d8c Server used SignatureAlgorithm 3
  238. mg_ssl_mbed_log      0x3fff0d8c Server used HashAlgorithm 4
  239. mg_ssl_mbed_log      0x3fff0d8c dumping 'signature' (71 bytes)
  240. mg_ssl_mbed_log      0x3fff0d8c 0000:  30 45 02 21 00 b7 5e 14 cf 38 b4 3f 6b a6 ec ea  0E.!..^..8.?k...
  241. mg_ssl_mbed_log      0x3fff0d8c 0010:  f4 03 19 dc d4 1d 97 8c 58 e1 ae 44 f9 c7 da 08  ........X..D....
  242. mg_ssl_mbed_log      0x3fff0d8c 0020:  3c 63 35 95 10 02 20 36 8e be 7b fd 17 19 b9 90  <c5... 6..{.....
  243. mg_ssl_mbed_log      0x3fff0d8c 0030:  8e a3 40 0e eb 6f 5a 4e 2b 72 c5 d8 0e 6a df 20  ..@..oZN+r...j.
  244. mg_ssl_mbed_log      0x3fff0d8c 0040:  18 2e b9 eb cf 66 71                             .....fq
  245. mg_ssl_mbed_log      0x3fff0d8c dumping 'parameters hash' (32 bytes)
  246. mg_ssl_mbed_log      0x3fff0d8c 0000:  9f a0 68 8a 28 ad 7a 5f 9b c2 ae 92 e9 a0 d9 07  ..h.(.z_........
  247. mg_ssl_mbed_log      0x3fff0d8c 0010:  0e 58 11 3b ce 52 a2 aa c1 8e 91 cd f4 03 64 8d  .X.;.R........d.
  248. ATCA ECDSA verify ok, verified
  249. mg_ssl_mbed_log      0x3fff0d8c <= parse server key exchange
  250. mg_ssl_mbed_log      0x3fff0d8c client state: 5
  251. mg_ssl_mbed_log      0x3fff0d8c => flush output
  252. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  253. mg_ssl_mbed_log      0x3fff0d8c => parse certificate request
  254. mg_ssl_mbed_log      0x3fff0d8c => read record
  255. mg_ssl_mbed_log      0x3fff0d8c handshake message: msglen = 42, type = 13, hslen = 38
  256. mg_ssl_mbed_log      0x3fff0d8c <= read record
  257. mg_ssl_mbed_log      0x3fff0d8c got a certificate request
  258. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 6,3
  259. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 6,1
  260. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 5,3
  261. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 5,1
  262. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 4,3
  263. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 4,1
  264. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 4,2
  265. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 3,3
  266. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 3,1
  267. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 3,2
  268. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 2,3
  269. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 2,1
  270. mg_ssl_mbed_log      0x3fff0d8c Supported Signature Algorithm found: 2,2
  271. mg_ssl_mbed_log      0x3fff0d8c <= parse certificate request
  272. mg_ssl_mbed_log      0x3fff0d8c client state: 6
  273. mg_ssl_mbed_log      0x3fff0d8c => flush output
  274. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  275. mg_ssl_mbed_log      0x3fff0d8c => parse server hello done
  276. mg_ssl_mbed_log      0x3fff0d8c => read record
  277. mg_ssl_mbed_log      0x3fff0d8c handshake message: msglen = 4, type = 14, hslen = 4
  278. mg_ssl_mbed_log      0x3fff0d8c <= read record
  279. mg_ssl_mbed_log      0x3fff0d8c <= parse server hello done
  280. mg_ssl_mbed_log      0x3fff0d8c client state: 7
  281. mg_ssl_mbed_log      0x3fff0d8c => flush output
  282. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  283. mg_ssl_mbed_log      0x3fff0d8c => write certificate
  284. mg_ssl_mbed_log      0x3fff0d8c own certificate #1:
  285. mg_ssl_mbed_log      0x3fff0d8c cert. version     : 3
  286. mg_ssl_mbed_log      0x3fff0d8c serial number     : 2E:9D:68:0A:4A:00:17:DD:AA:8B:9C:A1:61:07:2D:4F:8D:15:AA:88
  287. mg_ssl_mbed_log      0x3fff0d8c issuer name       : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
  288. mg_ssl_mbed_log      0x3fff0d8c subject name      : CN=esp8266_D4C621
  289. mg_ssl_mbed_log      0x3fff0d8c issued  on        : 2017-05-10 11:51:00
  290. mg_ssl_mbed_log      0x3fff0d8c expires on        : 2049-12-31 23:59:59
  291. mg_ssl_mbed_log      0x3fff0d8c signed using      : RSA with SHA-256
  292. mg_ssl_mbed_log      0x3fff0d8c EC key size       : 256 bits
  293. mg_ssl_mbed_log      0x3fff0d8c basic constraints : CA=false
  294. mg_ssl_mbed_log      0x3fff0d8c key usage         : Digital Signature
  295. mg_ssl_mbed_log      0x3fff0d8c value of 'crt->eckey.Q(X)' (252 bits) is:
  296. mg_ssl_mbed_log      0x3fff0d8c  0c 76 be e4 90 4b 59 72 36 07 3f f8 cb 94 ab a4
  297. mg_ssl_mbed_log      0x3fff0d8c  92 b4 74 79 41 60 df ad 98 ab b5 d1 cd ae f1 d6
  298. mg_ssl_mbed_log      0x3fff0d8c value of 'crt->eckey.Q(Y)' (256 bits) is:
  299. mg_ssl_mbed_log      0x3fff0d8c  c1 38 d1 ef 0e f5 f5 8c 76 f7 50 f4 56 3a 52 ef
  300. mg_ssl_mbed_log      0x3fff0d8c  2d fc 12 16 84 3a 56 dc e1 03 fc 98 df 97 79 b7
  301. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 13 => 676
  302. mg_ssl_mbed_log      0x3fff0d8c => write record
  303. mg_ssl_mbed_log      0x3fff0d8c output record: msgtype = 22, version = [3:3], msglen = 663
  304. mg_ssl_mbed_log      0x3fff0d8c => flush output
  305. mg_ssl_mbed_log      0x3fff0d8c message length: 668, out_left: 668
  306. ssl_socket_send      0x3fff0d8c 668 -> 668
  307. mg_ssl_mbed_log      0x3fff0d8c ssl->f_send() returned 668 (-0xfffffd64)
  308. mg_ssl_mbed_log      0x3fff0d8c shrink out_buf 676 => 13
  309. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  310. mg_ssl_mbed_log      0x3fff0d8c <= write record
  311. mg_ssl_mbed_log      0x3fff0d8c <= write certificate
  312. mg_ssl_mbed_log      0x3fff0d8c client state: 8
  313. mg_ssl_mbed_log      0x3fff0d8c => flush output
  314. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  315. mg_ssl_mbed_log      0x3fff0d8c => write client key exchange
  316. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 13 => 617
  317. ATCA:2 ECDH get pubkey ok
  318. mg_ssl_mbed_log      0x3fff0d8c value of 'ECDH: Q(X)' (255 bits) is:
  319. mg_ssl_mbed_log      0x3fff0d8c  75 7e fd f9 6f 60 bf 05 12 d3 71 2c d9 87 7b f5
  320. mg_ssl_mbed_log      0x3fff0d8c  15 65 3d 8a 1b 40 00 4d e4 db cc 9e b2 02 e9 22
  321. mg_ssl_mbed_log      0x3fff0d8c value of 'ECDH: Q(Y)' (256 bits) is:
  322. mg_ssl_mbed_log      0x3fff0d8c  f0 c3 71 20 d8 9d 8c 21 90 e8 a5 d0 5c cf 8d 74
  323. mg_ssl_mbed_log      0x3fff0d8c  f5 ab 73 0f 48 38 05 3b 2d d7 a9 09 3b 11 61 d7
  324. ATCA:2 ECDH ok
  325. mg_ssl_mbed_log      0x3fff0d8c value of 'ECDH: z' (252 bits) is:
  326. mg_ssl_mbed_log      0x3fff0d8c  0e 60 20 44 48 59 22 25 f8 c2 7e 64 31 e9 a3 22
  327. mg_ssl_mbed_log      0x3fff0d8c  d8 36 2c a4 bd 23 e8 4c 47 93 1b bc 0b e7 de 56
  328. mg_ssl_mbed_log      0x3fff0d8c shrink out_buf 617 => 83
  329. mg_ssl_mbed_log      0x3fff0d8c => write record
  330. mg_ssl_mbed_log      0x3fff0d8c output record: msgtype = 22, version = [3:3], msglen = 70
  331. mg_ssl_mbed_log      0x3fff0d8c => flush output
  332. mg_ssl_mbed_log      0x3fff0d8c message length: 75, out_left: 75
  333. ssl_socket_send      0x3fff0d8c 75 -> 75
  334. mg_ssl_mbed_log      0x3fff0d8c ssl->f_send() returned 75 (-0xffffffb5)
  335. mg_ssl_mbed_log      0x3fff0d8c shrink out_buf 83 => 13
  336. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  337. mg_ssl_mbed_log      0x3fff0d8c <= write record
  338. mg_ssl_mbed_log      0x3fff0d8c <= write client key exchange
  339. mg_ssl_mbed_log      0x3fff0d8c client state: 9
  340. mg_ssl_mbed_log      0x3fff0d8c => flush output
  341. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  342. mg_ssl_mbed_log      0x3fff0d8c => write certificate verify
  343. mg_ssl_mbed_log      0x3fff0d8c => derive keys
  344. mg_ssl_mbed_log      0x3fff0d8c dumping 'premaster secret' (32 bytes)
  345. mg_ssl_mbed_log      0x3fff0d8c 0000:  0e 60 20 44 48 59 22 25 f8 c2 7e 64 31 e9 a3 22  .` DHY"%..~d1.."
  346. mg_ssl_mbed_log      0x3fff0d8c 0010:  d8 36 2c a4 bd 23 e8 4c 47 93 1b bc 0b e7 de 56  .6,..#.LG......V
  347. mg_ssl_mbed_log      0x3fff0d8c ciphersuite = TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
  348. mg_ssl_mbed_log      0x3fff0d8c dumping 'master secret' (48 bytes)
  349. mg_ssl_mbed_log      0x3fff0d8c 0000:  78 48 68 54 a4 2e af d8 80 b4 fb 46 28 27 14 48  xHhT.......F('.H
  350. mg_ssl_mbed_log      0x3fff0d8c 0010:  c9 71 f4 e1 06 9c 61 07 a0 c9 ac 75 80 36 1f 34  .q....a....u.6.4
  351. mg_ssl_mbed_log      0x3fff0d8c 0020:  2a 26 98 60 c7 22 f9 94 cf 74 91 d7 9d 19 b3 0b  *&.`."...t......
  352. mg_ssl_mbed_log      0x3fff0d8c keylen: 16, minlen: 24, ivlen: 12, maclen: 0
  353. mg_ssl_mbed_log      0x3fff0d8c <= derive keys
  354. mg_ssl_mbed_log      0x3fff0d8c => calc verify sha256
  355. mg_ssl_mbed_log      0x3fff0d8c dumping 'calculated verify result' (32 bytes)
  356. mg_ssl_mbed_log      0x3fff0d8c 0000:  b2 27 04 d7 89 02 69 11 e5 d2 a2 61 26 f7 7a 78  .'....i....a&.zx
  357. mg_ssl_mbed_log      0x3fff0d8c 0010:  8d db 4e 62 d7 de 6f ec bf ab 58 05 a2 bc 61 b6  ..Nb..o...X...a.
  358. mg_ssl_mbed_log      0x3fff0d8c <= calc verify
  359. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 13 => 21
  360. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 21 => 621
  361. ATCA:0 ECDSA sign ok
  362. mg_ssl_mbed_log      0x3fff0d8c => write record
  363. mg_ssl_mbed_log      0x3fff0d8c output record: msgtype = 22, version = [3:3], msglen = 80
  364. mg_ssl_mbed_log      0x3fff0d8c => flush output
  365. mg_ssl_mbed_log      0x3fff0d8c message length: 85, out_left: 85
  366. ssl_socket_send      0x3fff0d8c 85 -> 85
  367. mg_ssl_mbed_log      0x3fff0d8c ssl->f_send() returned 85 (-0xffffffab)
  368. mg_ssl_mbed_log      0x3fff0d8c shrink out_buf 621 => 13
  369. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  370. mg_ssl_mbed_log      0x3fff0d8c <= write record
  371. mg_ssl_mbed_log      0x3fff0d8c <= write certificate verify
  372. mg_ssl_mbed_log      0x3fff0d8c client state: 10
  373. mg_ssl_mbed_log      0x3fff0d8c => flush output
  374. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  375. mg_ssl_mbed_log      0x3fff0d8c => write change cipher spec
  376. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 13 => 14
  377. mg_ssl_mbed_log      0x3fff0d8c => write record
  378. mg_ssl_mbed_log      0x3fff0d8c output record: msgtype = 20, version = [3:3], msglen = 1
  379. mg_ssl_mbed_log      0x3fff0d8c => flush output
  380. mg_ssl_mbed_log      0x3fff0d8c message length: 6, out_left: 6
  381. ssl_socket_send      0x3fff0d8c 6 -> 6
  382. mg_ssl_mbed_log      0x3fff0d8c ssl->f_send() returned 6 (-0xfffffffa)
  383. mg_ssl_mbed_log      0x3fff0d8c shrink out_buf 14 => 13
  384. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  385. mg_ssl_mbed_log      0x3fff0d8c <= write record
  386. mg_ssl_mbed_log      0x3fff0d8c <= write change cipher spec
  387. mg_ssl_mbed_log      0x3fff0d8c client state: 11
  388. mg_ssl_mbed_log      0x3fff0d8c => flush output
  389. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  390. mg_ssl_mbed_log      0x3fff0d8c => write finished
  391. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 13 => 37
  392. mg_ssl_mbed_log      0x3fff0d8c => calc  finished tls sha256
  393. mg_ssl_mbed_log      0x3fff0d8c dumping 'calc finished result' (12 bytes)
  394. mg_ssl_mbed_log      0x3fff0d8c 0000:  54 5e 36 21 c8 41 b8 b5 a8 ff 4d 6c              T^6!.A....Ml
  395. mg_ssl_mbed_log      0x3fff0d8c <= calc  finished
  396. mg_ssl_mbed_log      0x3fff0d8c switching to new transform spec for outbound data
  397. mg_ssl_mbed_log      0x3fff0d8c => write record
  398. mg_ssl_mbed_log      0x3fff0d8c => encrypt buf
  399. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 37 => 61
  400. mg_ssl_mbed_log      0x3fff0d8c before encrypt: msglen = 24, including 0 bytes of padding
  401. mg_ssl_mbed_log      0x3fff0d8c <= encrypt buf
  402. mg_ssl_mbed_log      0x3fff0d8c output record: msgtype = 22, version = [3:3], msglen = 40
  403. mg_ssl_mbed_log      0x3fff0d8c => flush output
  404. mg_ssl_mbed_log      0x3fff0d8c message length: 45, out_left: 45
  405. ssl_socket_send      0x3fff0d8c 45 -> 45
  406. mg_ssl_mbed_log      0x3fff0d8c ssl->f_send() returned 45 (-0xffffffd3)
  407. mg_ssl_mbed_log      0x3fff0d8c shrink out_buf 61 => 21
  408. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  409. mg_ssl_mbed_log      0x3fff0d8c <= write record
  410. mg_ssl_mbed_log      0x3fff0d8c <= write finished
  411. mg_ssl_mbed_log      0x3fff0d8c client state: 12
  412. mg_ssl_mbed_log      0x3fff0d8c => flush output
  413. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  414. mg_ssl_mbed_log      0x3fff0d8c => parse change cipher spec
  415. mg_ssl_mbed_log      0x3fff0d8c => read record
  416. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  417. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 2604
  418. mg_ssl_mbed_log      0x3fff0d8c shrink in_buf 2604 => 13
  419. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  420. mg_ssl_mbed_log      0x3fff0d8c <= handshake
  421. mongoose_poll        New heap free LWM: 28128
  422. mg_ssl_mbed_log      0x3fff0d8c => handshake
  423. mg_ssl_mbed_log      0x3fff0d8c client state: 12
  424. mg_ssl_mbed_log      0x3fff0d8c => flush output
  425. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  426. mg_ssl_mbed_log      0x3fff0d8c => parse change cipher spec
  427. mg_ssl_mbed_log      0x3fff0d8c => read record
  428. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  429. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  430. ssl_socket_recv      0x3fff0d8c <- 5
  431. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  432. mg_ssl_mbed_log      0x3fff0d8c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  433. mg_ssl_mbed_log      0x3fff0d8c <= fetch input
  434. mg_ssl_mbed_log      0x3fff0d8c input record: msgtype = 20, version = [3:3], msglen = 1
  435. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  436. mg_ssl_mbed_log      0x3fff0d8c in_left: 5, nb_want: 6, in_buf_size: 13
  437. mg_ssl_mbed_log      0x3fff0d8c grow in_buf 13 => 14
  438. ssl_socket_recv      0x3fff0d8c <- 1
  439. mg_ssl_mbed_log      0x3fff0d8c in_left: 5, nb_want: 6, in_buf_size: 14
  440. mg_ssl_mbed_log      0x3fff0d8c ssl->f_recv(_timeout)() returned 1 (-0xffffffff)
  441. mg_ssl_mbed_log      0x3fff0d8c <= fetch input
  442. mg_ssl_mbed_log      0x3fff0d8c <= read record
  443. mg_ssl_mbed_log      0x3fff0d8c switching to new transform spec for inbound data
  444. mg_ssl_mbed_log      0x3fff0d8c <= parse change cipher spec
  445. mg_ssl_mbed_log      0x3fff0d8c client state: 13
  446. mg_ssl_mbed_log      0x3fff0d8c => flush output
  447. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  448. mg_ssl_mbed_log      0x3fff0d8c => parse finished
  449. mg_ssl_mbed_log      0x3fff0d8c => calc  finished tls sha256
  450. mg_ssl_mbed_log      0x3fff0d8c dumping 'calc finished result' (12 bytes)
  451. mg_ssl_mbed_log      0x3fff0d8c 0000:  5d ce a6 19 d5 44 80 a7 26 f1 70 46              ]....D..&.pF
  452. mg_ssl_mbed_log      0x3fff0d8c <= calc  finished
  453. mg_ssl_mbed_log      0x3fff0d8c => read record
  454. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  455. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 14
  456. mg_ssl_mbed_log      0x3fff0d8c shrink in_buf 14 => 13
  457. ssl_socket_recv      0x3fff0d8c <- 5
  458. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  459. mg_ssl_mbed_log      0x3fff0d8c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  460. mg_ssl_mbed_log      0x3fff0d8c <= fetch input
  461. mg_ssl_mbed_log      0x3fff0d8c input record: msgtype = 22, version = [3:3], msglen = 40
  462. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  463. mg_ssl_mbed_log      0x3fff0d8c in_left: 5, nb_want: 45, in_buf_size: 13
  464. mg_ssl_mbed_log      0x3fff0d8c grow in_buf 13 => 53
  465. ssl_socket_recv      0x3fff0d8c <- 40
  466. mg_ssl_mbed_log      0x3fff0d8c in_left: 5, nb_want: 45, in_buf_size: 53
  467. mg_ssl_mbed_log      0x3fff0d8c ssl->f_recv(_timeout)() returned 40 (-0xffffffd8)
  468. mg_ssl_mbed_log      0x3fff0d8c <= fetch input
  469. mg_ssl_mbed_log      0x3fff0d8c => decrypt buf
  470. mg_ssl_mbed_log      0x3fff0d8c <= decrypt buf
  471. mg_ssl_mbed_log      0x3fff0d8c handshake message: msglen = 16, type = 20, hslen = 16
  472. mg_ssl_mbed_log      0x3fff0d8c <= read record
  473. mg_ssl_mbed_log      0x3fff0d8c <= parse finished
  474. mg_ssl_mbed_log      0x3fff0d8c client state: 14
  475. mg_ssl_mbed_log      0x3fff0d8c => flush output
  476. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  477. mg_ssl_mbed_log      0x3fff0d8c handshake: done
  478. mg_ssl_mbed_log      0x3fff0d8c client state: 15
  479. mg_ssl_mbed_log      0x3fff0d8c => flush output
  480. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  481. mg_ssl_mbed_log      0x3fff0d8c => handshake wrapup
  482. mg_ssl_mbed_log      0x3fff0d8c => handshake wrapup: final free
  483. mg_ssl_mbed_log      0x3fff0d8c <= handshake wrapup: final free
  484. mg_ssl_mbed_log      0x3fff0d8c <= handshake wrapup
  485. mg_ssl_mbed_log      0x3fff0d8c <= handshake
  486. mgos_mqtt_ev         MQTT Connect (1)
  487. mg_ssl_mbed_log      0x3fff0d8c => write
  488. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 21 => 47
  489. mg_ssl_mbed_log      0x3fff0d8c => write record
  490. mg_ssl_mbed_log      0x3fff0d8c => encrypt buf
  491. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 47 => 71
  492. mg_ssl_mbed_log      0x3fff0d8c before encrypt: msglen = 34, including 0 bytes of padding
  493. mg_ssl_mbed_log      0x3fff0d8c <= encrypt buf
  494. mg_ssl_mbed_log      0x3fff0d8c output record: msgtype = 23, version = [3:3], msglen = 50
  495. mg_ssl_mbed_log      0x3fff0d8c => flush output
  496. mg_ssl_mbed_log      0x3fff0d8c message length: 55, out_left: 55
  497. ssl_socket_send      0x3fff0d8c 55 -> 55
  498. mg_ssl_mbed_log      0x3fff0d8c ssl->f_send() returned 55 (-0xffffffc9)
  499. mg_ssl_mbed_log      0x3fff0d8c shrink out_buf 71 => 21
  500. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  501. mg_ssl_mbed_log      0x3fff0d8c <= write record
  502. mg_ssl_mbed_log      0x3fff0d8c <= write
  503. mg_ssl_mbed_log      0x3fff0d8c => read
  504. mg_ssl_mbed_log      0x3fff0d8c => read record
  505. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  506. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 53
  507. mg_ssl_mbed_log      0x3fff0d8c shrink in_buf 53 => 13
  508. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  509. mg_ssl_mbed_log      0x3fff0d8c => read
  510. mg_ssl_mbed_log      0x3fff0d8c => read record
  511. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  512. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  513. ssl_socket_recv      0x3fff0d8c <- 5
  514. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  515. mg_ssl_mbed_log      0x3fff0d8c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  516. mg_ssl_mbed_log      0x3fff0d8c <= fetch input
  517. mg_ssl_mbed_log      0x3fff0d8c input record: msgtype = 23, version = [3:3], msglen = 28
  518. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  519. mg_ssl_mbed_log      0x3fff0d8c in_left: 5, nb_want: 33, in_buf_size: 13
  520. mg_ssl_mbed_log      0x3fff0d8c grow in_buf 13 => 41
  521. ssl_socket_recv      0x3fff0d8c <- 28
  522. mg_ssl_mbed_log      0x3fff0d8c in_left: 5, nb_want: 33, in_buf_size: 41
  523. mg_ssl_mbed_log      0x3fff0d8c ssl->f_recv(_timeout)() returned 28 (-0xffffffe4)
  524. mg_ssl_mbed_log      0x3fff0d8c <= fetch input
  525. mg_ssl_mbed_log      0x3fff0d8c => decrypt buf
  526. mg_ssl_mbed_log      0x3fff0d8c <= decrypt buf
  527. mg_ssl_mbed_log      0x3fff0d8c <= read record
  528. mg_ssl_mbed_log      0x3fff0d8c <= read
  529. mgos_mqtt_ev         MQTT event: 202
  530. mgos_mqtt_ev         MQTT CONNACK 0
  531. ev_handler           CONNACK: 0
  532. sub                  Subscribed to /request
  533. sub                  Subscribed to /request/1AFE34D4C621
  534. mgos_mqtt_pub        Publishing to register_device @ 0 (43): [{"chipid":"1AFE34D4C621","dev_type":"WIFI"}]
  535. mgos_mqtt_ev         Subscribing to '1AFE34D4C621/rpc'
  536. mgos_mqtt_ev         Subscribing to '1AFE34D4C621/rpc/#'
  537. mg_ssl_mbed_log      0x3fff0d8c => read
  538. mg_ssl_mbed_log      0x3fff0d8c => read record
  539. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  540. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 41
  541. mg_ssl_mbed_log      0x3fff0d8c shrink in_buf 41 => 13
  542. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  543. mg_ssl_mbed_log      0x3fff0d8c => write
  544. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 21 => 174
  545. mg_ssl_mbed_log      0x3fff0d8c => write record
  546. mg_ssl_mbed_log      0x3fff0d8c => encrypt buf
  547. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 174 => 198
  548. mg_ssl_mbed_log      0x3fff0d8c before encrypt: msglen = 161, including 0 bytes of padding
  549. mg_ssl_mbed_log      0x3fff0d8c <= encrypt buf
  550. mg_ssl_mbed_log      0x3fff0d8c output record: msgtype = 23, version = [3:3], msglen = 177
  551. mg_ssl_mbed_log      0x3fff0d8c => flush output
  552. mg_ssl_mbed_log      0x3fff0d8c message length: 182, out_left: 182
  553. ssl_socket_send      0x3fff0d8c 182 -> 182
  554. mg_ssl_mbed_log      0x3fff0d8c ssl->f_send() returned 182 (-0xffffff4a)
  555. mg_ssl_mbed_log      0x3fff0d8c shrink out_buf 198 => 21
  556. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  557. mg_ssl_mbed_log      0x3fff0d8c <= write record
  558. mg_ssl_mbed_log      0x3fff0d8c <= write
  559. pm open,type:2 0
  560. mg_ssl_mbed_log      0x3fff0d8c => read
  561. mg_ssl_mbed_log      0x3fff0d8c => read record
  562. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  563. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  564. ssl_socket_recv      0x3fff0d8c <- 5
  565. mg_ssl_mbed_log      0x3fff0d8c in_left: 0, nb_want: 5, in_buf_size: 13
  566. mg_ssl_mbed_log      0x3fff0d8c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  567. mg_ssl_mbed_log      0x3fff0d8c <= fetch input
  568. mg_ssl_mbed_log      0x3fff0d8c input record: msgtype = 21, version = [3:3], msglen = 26
  569. mg_ssl_mbed_log      0x3fff0d8c => fetch input
  570. mg_ssl_mbed_log      0x3fff0d8c in_left: 5, nb_want: 31, in_buf_size: 13
  571. mg_ssl_mbed_log      0x3fff0d8c grow in_buf 13 => 39
  572. ssl_socket_recv      0x3fff0d8c <- 26
  573. mg_ssl_mbed_log      0x3fff0d8c in_left: 5, nb_want: 31, in_buf_size: 39
  574. mg_ssl_mbed_log      0x3fff0d8c ssl->f_recv(_timeout)() returned 26 (-0xffffffe6)
  575. mg_ssl_mbed_log      0x3fff0d8c <= fetch input
  576. mg_ssl_mbed_log      0x3fff0d8c => decrypt buf
  577. mg_ssl_mbed_log      0x3fff0d8c <= decrypt buf
  578. mg_ssl_mbed_log      0x3fff0d8c got an alert message, type: [1:0]
  579. mg_ssl_mbed_log      0x3fff0d8c is a close notify message
  580. mg_ssl_mbed_log      0x3fff0d8c mbedtls_ssl_handle_message_type() returned -30848 (-0x7880)
  581. mg_ssl_mbed_log      0x3fff0d8c mbedtls_ssl_read_record() returned -30848 (-0x7880)
  582. mg_ssl_mbed_log      0x3fff0d8c => write close notify
  583. mg_ssl_mbed_log      0x3fff0d8c => send alert message
  584. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 21 => 23
  585. mg_ssl_mbed_log      0x3fff0d8c => write record
  586. mg_ssl_mbed_log      0x3fff0d8c => encrypt buf
  587. mg_ssl_mbed_log      0x3fff0d8c grow out_buf 23 => 47
  588. mg_ssl_mbed_log      0x3fff0d8c before encrypt: msglen = 10, including 0 bytes of padding
  589. mg_ssl_mbed_log      0x3fff0d8c <= encrypt buf
  590. mg_ssl_mbed_log      0x3fff0d8c output record: msgtype = 21, version = [3:3], msglen = 26
  591. mg_ssl_mbed_log      0x3fff0d8c => flush output
  592. mg_ssl_mbed_log      0x3fff0d8c message length: 31, out_left: 31
  593. ssl_socket_send      0x3fff0d8c 31 -> 31
  594. mg_ssl_mbed_log      0x3fff0d8c ssl->f_send() returned 31 (-0xffffffe1)
  595. mg_ssl_mbed_log      0x3fff0d8c shrink out_buf 47 => 21
  596. mg_ssl_mbed_log      0x3fff0d8c <= flush output
  597. mg_ssl_mbed_log      0x3fff0d8c <= write record
  598. mg_ssl_mbed_log      0x3fff0d8c <= send alert message
  599. mg_ssl_mbed_log      0x3fff0d8c <= write close notify
  600. mgos_mqtt_ev         MQTT Disconnect
  601. mqtt_global_reconnec MQTT connecting after 1987 ms
  602. mg_ssl_mbed_log      0x3fff0d8c => free
  603. mg_ssl_mbed_log      0x3fff0d8c <= free
  604. mqtt_global_connect  MQTT connecting to a2wvu7vrfjdfdx.iot.us-west-2.amazonaws.com:8883
  605. set_spiffs_errno     aws-iot-c74e641add.crt.pem: res = 1, e = -10002
  606. set_spiffs_errno     fstat: res = 0, e = -10002
  607. set_spiffs_errno     fstat: res = 0, e = -10002
  608. set_spiffs_errno     lseek: res = 0, e = -10002
  609. set_spiffs_errno     lseek: res = 1024, e = -10002
  610. set_spiffs_errno     read: res = 117, e = -10002
  611. set_spiffs_errno     lseek: res = 0, e = -10002
  612. set_spiffs_errno     read: res = 1024, e = -10002
  613. set_spiffs_errno     read: res = 117, e = -10002
  614. set_spiffs_errno     close: res = 0, e = -10002
  615. set_spiffs_errno     ca-verisign-ecc-g2.crt.pem: res = 1, e = -10002
  616. set_spiffs_errno     fstat: res = 0, e = -10002
  617. set_spiffs_errno     fstat: res = 0, e = -10002
  618. set_spiffs_errno     lseek: res = 0, e = -10002
  619. set_spiffs_errno     lseek: res = 1024, e = -10002
  620. set_spiffs_errno     read: res = 566, e = -10002
  621. set_spiffs_errno     lseek: res = 0, e = -10002
  622. set_spiffs_errno     read: res = 1024, e = -10002
  623. set_spiffs_errno     read: res = 566, e = -10002
  624. set_spiffs_errno     close: res = 0, e = -10002
  625. mg_resolve_async_eh  Failed to resolve 'a2wvu7vrfjdfdx.iot.us-west-2.amazonaws.com', server 192.168.1.1
  626. mgos_mqtt_ev         MQTT Connect (0)
  627. mgos_mqtt_ev         MQTT Disconnect
  628. mqtt_global_reconnec MQTT connecting after 3920 ms
  629. mg_ssl_mbed_log      0x3fff0d2c => free
  630. mg_ssl_mbed_log      0x3fff0d2c <= free
  631. mqtt_global_connect  MQTT connecting to a2wvu7vrfjdfdx.iot.us-west-2.amazonaws.com:8883
  632. set_spiffs_errno     aws-iot-c74e641add.crt.pem: res = 1, e = -10002
  633. set_spiffs_errno     fstat: res = 0, e = -10002
  634. set_spiffs_errno     fstat: res = 0, e = -10002
  635. set_spiffs_errno     lseek: res = 0, e = -10002
  636. set_spiffs_errno     lseek: res = 1024, e = -10002
  637. set_spiffs_errno     read: res = 117, e = -10002
  638. set_spiffs_errno     lseek: res = 0, e = -10002
  639. set_spiffs_errno     read: res = 1024, e = -10002
  640. set_spiffs_errno     read: res = 117, e = -10002
  641. set_spiffs_errno     close: res = 0, e = -10002
  642. set_spiffs_errno     ca-verisign-ecc-g2.crt.pem: res = 1, e = -10002
  643. set_spiffs_errno     fstat: res = 0, e = -10002
  644. set_spiffs_errno     fstat: res = 0, e = -10002
  645. set_spiffs_errno     lseek: res = 0, e = -10002
  646. set_spiffs_errno     lseek: res = 1024, e = -10002
  647. set_spiffs_errno     read: res = 566, e = -10002
  648. set_spiffs_errno     lseek: res = 0, e = -10002
  649. set_spiffs_errno     read: res = 1024, e = -10002
  650. set_spiffs_errno     read: res = 566, e = -10002
  651. set_spiffs_errno     close: res = 0, e = -10002
  652. mg_ssl_mbed_log      0x3fff0d2c => handshake
  653. mg_ssl_mbed_log      0x3fff0d2c client state: 0
  654. mg_ssl_mbed_log      0x3fff0d2c => flush output
  655. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  656. mg_ssl_mbed_log      0x3fff0d2c client state: 1
  657. mg_ssl_mbed_log      0x3fff0d2c => flush output
  658. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  659. mg_ssl_mbed_log      0x3fff0d2c => write client hello
  660. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 0 => 145
  661. mg_ssl_mbed_log      0x3fff0d2c client hello, max version: [3:3]
  662. mg_ssl_mbed_log      0x3fff0d2c dumping 'client hello, random bytes' (32 bytes)
  663. mg_ssl_mbed_log      0x3fff0d2c 0000:  16 2a ba 89 99 6a 35 ff b2 11 29 51 93 5a 45 87  .*...j5...)Q.ZE.
  664. mg_ssl_mbed_log      0x3fff0d2c 0010:  17 bf fe 5e 5e 21 17 2a 2c 79 20 0d c4 5a 6b e3  ...^^!.*,y ..Zk.
  665. mg_ssl_mbed_log      0x3fff0d2c client hello, session id len.: 0
  666. mg_ssl_mbed_log      0x3fff0d2c dumping 'client hello, session id' (0 bytes)
  667. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c02b
  668. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c02f
  669. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: 009e
  670. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: 0067
  671. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c02d
  672. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c025
  673. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c004
  674. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c031
  675. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c029
  676. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c00e
  677. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: 009c
  678. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: 003c
  679. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: 002f
  680. mg_ssl_mbed_log      0x3fff0d2c client hello, got 14 ciphersuites
  681. mg_ssl_mbed_log      0x3fff0d2c client hello, compress len.: 1
  682. mg_ssl_mbed_log      0x3fff0d2c client hello, compress alg.: 0
  683. mg_ssl_mbed_log      0x3fff0d2c client hello, adding server name extension: a2wvu7vrfjdfdx.iot.us-west-2.amazonaws.com
  684. mg_ssl_mbed_log      0x3fff0d2c client hello, adding signature_algorithms extension
  685. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 145 => 155
  686. mg_ssl_mbed_log      0x3fff0d2c client hello, adding supported_elliptic_curves extension
  687. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 155 => 163
  688. mg_ssl_mbed_log      0x3fff0d2c client hello, adding supported_point_formats extension
  689. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 163 => 169
  690. mg_ssl_mbed_log      0x3fff0d2c client hello, adding encrypt_then_mac extension
  691. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 169 => 173
  692. mg_ssl_mbed_log      0x3fff0d2c client hello, adding extended_master_secret extension
  693. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 173 => 177
  694. mg_ssl_mbed_log      0x3fff0d2c client hello, total extension length: 91
  695. mg_ssl_mbed_log      0x3fff0d2c => write record
  696. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 22, version = [3:3], msglen = 164
  697. mg_ssl_mbed_log      0x3fff0d2c => flush output
  698. mg_ssl_mbed_log      0x3fff0d2c message length: 169, out_left: 169
  699. ssl_socket_send      0x3fff0d2c 169 -> 169
  700. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 169 (-0xffffff57)
  701. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 177 => 13
  702. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  703. mg_ssl_mbed_log      0x3fff0d2c <= write record
  704. mg_ssl_mbed_log      0x3fff0d2c <= write client hello
  705. mg_ssl_mbed_log      0x3fff0d2c client state: 2
  706. mg_ssl_mbed_log      0x3fff0d2c => flush output
  707. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  708. mg_ssl_mbed_log      0x3fff0d2c => parse server hello
  709. mg_ssl_mbed_log      0x3fff0d2c => read record
  710. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  711. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 0
  712. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 0 => 13
  713. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  714. mg_ssl_mbed_log      0x3fff0d2c <= handshake
  715. mg_ssl_mbed_log      0x3fff0d2c => handshake
  716. mg_ssl_mbed_log      0x3fff0d2c client state: 2
  717. mg_ssl_mbed_log      0x3fff0d2c => flush output
  718. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  719. mg_ssl_mbed_log      0x3fff0d2c => parse server hello
  720. mg_ssl_mbed_log      0x3fff0d2c => read record
  721. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  722. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  723. ssl_socket_recv      0x3fff0d2c <- 5
  724. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  725. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  726. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  727. mg_ssl_mbed_log      0x3fff0d2c input record: msgtype = 22, version = [3:3], msglen = 2590
  728. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  729. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 2595, in_buf_size: 13
  730. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 13 => 2603
  731. ssl_socket_recv      0x3fff0d2c <- 1455
  732. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 2595, in_buf_size: 2603
  733. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 1455 (-0xfffffa51)
  734. ssl_socket_recv      0x3fff0d2c <- 1135
  735. mg_ssl_mbed_log      0x3fff0d2c in_left: 1460, nb_want: 2595, in_buf_size: 2603
  736. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 1135 (-0xfffffb91)
  737. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  738. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 2590, type = 2, hslen = 81
  739. mg_ssl_mbed_log      0x3fff0d2c <= read record
  740. mg_ssl_mbed_log      0x3fff0d2c dumping 'server hello, version' (2 bytes)
  741. mg_ssl_mbed_log      0x3fff0d2c 0000:  03 03                                            ..
  742. mg_ssl_mbed_log      0x3fff0d2c server hello, current time: 1494487507
  743. mg_ssl_mbed_log      0x3fff0d2c dumping 'server hello, random bytes' (32 bytes)
  744. mg_ssl_mbed_log      0x3fff0d2c 0000:  59 14 11 d3 64 c7 22 e3 3a 81 19 e5 35 67 53 33  Y...d.".:...5gS3
  745. mg_ssl_mbed_log      0x3fff0d2c 0010:  6c b7 c1 55 44 4c 50 16 5e 4f 25 45 59 cc 4e 3f  l..UDLP.^O%EY.N?
  746. mg_ssl_mbed_log      0x3fff0d2c server hello, session id len.: 32
  747. mg_ssl_mbed_log      0x3fff0d2c dumping 'server hello, session id' (32 bytes)
  748. mg_ssl_mbed_log      0x3fff0d2c 0000:  59 14 11 d3 e4 aa a3 61 81 15 93 84 de a3 d5 06  Y......a........
  749. mg_ssl_mbed_log      0x3fff0d2c 0010:  fb da 39 5b ef fd 8c 6f ed e2 67 68 e3 7a 19 10  ..9[...o..gh.z..
  750. mg_ssl_mbed_log      0x3fff0d2c no session has been resumed
  751. mg_ssl_mbed_log      0x3fff0d2c server hello, chosen ciphersuite: c02b
  752. mg_ssl_mbed_log      0x3fff0d2c server hello, compress alg.: 0
  753. mg_ssl_mbed_log      0x3fff0d2c server hello, chosen ciphersuite: TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
  754. mg_ssl_mbed_log      0x3fff0d2c server hello, total extension length: 5
  755. mg_ssl_mbed_log      0x3fff0d2c found renegotiation extension
  756. mg_ssl_mbed_log      0x3fff0d2c <= parse server hello
  757. mg_ssl_mbed_log      0x3fff0d2c client state: 3
  758. mg_ssl_mbed_log      0x3fff0d2c => flush output
  759. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  760. mg_ssl_mbed_log      0x3fff0d2c => parse certificate
  761. mg_ssl_mbed_log      0x3fff0d2c => read record
  762. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 2509, type = 11, hslen = 2320
  763. mg_ssl_mbed_log      0x3fff0d2c <= read record
  764. mg_ssl_mbed_log      0x3fff0d2c peer certificate #1:
  765. mg_ssl_mbed_log      0x3fff0d2c cert. version     : 3
  766. mg_ssl_mbed_log      0x3fff0d2c serial number     : 20:88:52:7E:45:DF:8F:76:68:0D:39:EA:E2:26:12:D2
  767. mg_ssl_mbed_log      0x3fff0d2c issuer name       : C=US, O=Symantec Corporation, OU=Symantec Trust Network, CN=Symantec Class 3 ECC 256 bit SSL CA - G2
  768. mg_ssl_mbed_log      0x3fff0d2c subject name      : C=US, ST=Washington, L=Seattle, O=Amazon.com, Inc., CN=*.iot.us-west-2.amazonaws.com
  769. mg_ssl_mbed_log      0x3fff0d2c issued  on        : 2017-03-07 00:00:00
  770. mg_ssl_mbed_log      0x3fff0d2c expires on        : 2018-03-08 23:59:59
  771. mg_ssl_mbed_log      0x3fff0d2c signed using      : ECDSA with SHA256
  772. mg_ssl_mbed_log      0x3fff0d2c EC key size       : 256 bits
  773. mg_ssl_mbed_log      0x3fff0d2c basic constraints : CA=false
  774. mg_ssl_mbed_log      0x3fff0d2c subject alt name  : iot.us-west-2.amazonaws.com, *.iot.us-west-2.amazonaws.com
  775. mg_ssl_mbed_log      0x3fff0d2c key usage         : Digital Signature
  776. mg_ssl_mbed_log      0x3fff0d2c ext key usage     : TLS Web Server Authentication, TLS Web Client Authentication
  777. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(X)' (255 bits) is:
  778. mg_ssl_mbed_log      0x3fff0d2c  70 14 ad b7 d2 d6 20 cb 27 39 fb 86 1b de 9d d2
  779. mg_ssl_mbed_log      0x3fff0d2c  50 75 0b 71 35 9e 24 5f aa eb e4 d0 a2 31 90 56
  780. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(Y)' (254 bits) is:
  781. mg_ssl_mbed_log      0x3fff0d2c  34 c5 39 fc 2c 34 9d 25 c7 f7 b3 2f 8e ff 35 b7
  782. mg_ssl_mbed_log      0x3fff0d2c  7a 4f 48 e2 a7 48 fd 0a 84 81 0f 58 1b f5 0a b2
  783. mg_ssl_mbed_log      0x3fff0d2c peer certificate #2:
  784. mg_ssl_mbed_log      0x3fff0d2c cert. version     : 3
  785. mg_ssl_mbed_log      0x3fff0d2c serial number     : 3F:92:87:BE:9D:1D:A4:A3:7A:9D:F6:28:2E:77:5A:C4
  786. mg_ssl_mbed_log      0x3fff0d2c issuer name       : C=US, O=VeriSign, Inc., OU=VeriSign Trust Network, OU=(c) 2006 VeriSign, Inc. - For authorized use only, CN=VeriSign Class 3 Public Primary Certification Authority - G5
  787. mg_ssl_mbed_log      0x3fff0d2c subject name      : C=US, O=Symantec Corporation, OU=Symantec Trust Network, CN=Symantec Class 3 ECC 256 bit SSL CA - G2
  788. mg_ssl_mbed_log      0x3fff0d2c issued  on        : 2015-05-12 00:00:00
  789. mg_ssl_mbed_log      0x3fff0d2c expires on        : 2025-05-11 23:59:59
  790. mg_ssl_mbed_log      0x3fff0d2c signed using      : RSA with SHA-256
  791. mg_ssl_mbed_log      0x3fff0d2c EC key size       : 256 bits
  792. mg_ssl_mbed_log      0x3fff0d2c basic constraints : CA=true, max_pathlen=0
  793. mg_ssl_mbed_log      0x3fff0d2c subject alt name  :
  794. mg_ssl_mbed_log      0x3fff0d2c key usage         : Key Cert Sign, CRL Sign
  795. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(X)' (252 bits) is:
  796. mg_ssl_mbed_log      0x3fff0d2c  0f 1b a4 91 d7 e7 ac e7 d1 4e 4e b7 64 5b e1 8f
  797. mg_ssl_mbed_log      0x3fff0d2c  7f 6e 04 d3 ab 38 db 44 b7 40 5c 6d bd 96 96 37
  798. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(Y)' (256 bits) is:
  799. mg_ssl_mbed_log      0x3fff0d2c  df 79 89 86 67 f7 b1 1f 08 9e fd 63 3b 46 8c 9f
  800. mg_ssl_mbed_log      0x3fff0d2c  bd 53 e8 15 dc 97 3e 2b 81 46 ad 86 7f 0e 01 39
  801. ATCA ECDSA verify ok, verified
  802. mg_ssl_mbed_log      0x3fff0d2c <= parse certificate
  803. mg_ssl_mbed_log      0x3fff0d2c client state: 4
  804. mg_ssl_mbed_log      0x3fff0d2c => flush output
  805. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  806. mg_ssl_mbed_log      0x3fff0d2c => parse server key exchange
  807. mg_ssl_mbed_log      0x3fff0d2c => read record
  808. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 189, type = 12, hslen = 147
  809. mg_ssl_mbed_log      0x3fff0d2c <= read record
  810. mg_ssl_mbed_log      0x3fff0d2c dumping 'server key exchange' (143 bytes)
  811. mg_ssl_mbed_log      0x3fff0d2c 0000:  03 00 17 41 04 fd dc 13 43 5a ee 41 c4 1a 4b 5e  ...A....CZ.A..K^
  812. mg_ssl_mbed_log      0x3fff0d2c 0010:  44 25 36 dd ff 36 30 9f d2 5c fd 7a 60 65 0b d3  D%6..60..\.z`e..
  813. mg_ssl_mbed_log      0x3fff0d2c 0020:  2c 12 b6 78 7b ae 96 77 ea a8 b6 19 9d 6d 2b 64  ,..x{..w.....m+d
  814. mg_ssl_mbed_log      0x3fff0d2c 0030:  2e 66 3b 2e 17 15 2f fc 24 55 60 d9 4f 06 7b 01  .f;.../.$U`.O.{.
  815. mg_ssl_mbed_log      0x3fff0d2c 0040:  18 bc 41 45 31 04 03 00 46 30 44 02 20 12 31 e3  ..AE1...F0D. .1.
  816. mg_ssl_mbed_log      0x3fff0d2c 0050:  ec 5d 10 ad 4c 4f 25 d9 74 28 2a b9 e1 6f 27 95  .]..LO%.t(*..o'.
  817. mg_ssl_mbed_log      0x3fff0d2c 0060:  9c 8f 53 45 0f 21 e3 2d ba ee 30 84 0f 02 20 5e  ..SE.!.-..0... ^
  818. mg_ssl_mbed_log      0x3fff0d2c 0070:  1e a9 19 ef ae cc bf 3e de 51 0f 2f d7 73 44 3d  .......>.Q./.sD=
  819. mg_ssl_mbed_log      0x3fff0d2c 0080:  16 fd df 27 4c 31 e7 55 88 5e 66 14 b8 fe 25     ...'L1.U.^f...%
  820. mg_ssl_mbed_log      0x3fff0d2c ECDH curve: secp256r1
  821. mg_ssl_mbed_log      0x3fff0d2c value of 'ECDH: Qp(X)' (256 bits) is:
  822. mg_ssl_mbed_log      0x3fff0d2c  fd dc 13 43 5a ee 41 c4 1a 4b 5e 44 25 36 dd ff
  823. mg_ssl_mbed_log      0x3fff0d2c  36 30 9f d2 5c fd 7a 60 65 0b d3 2c 12 b6 78 7b
  824. mg_ssl_mbed_log      0x3fff0d2c value of 'ECDH: Qp(Y)' (256 bits) is:
  825. mg_ssl_mbed_log      0x3fff0d2c  ae 96 77 ea a8 b6 19 9d 6d 2b 64 2e 66 3b 2e 17
  826. mg_ssl_mbed_log      0x3fff0d2c  15 2f fc 24 55 60 d9 4f 06 7b 01 18 bc 41 45 31
  827. mg_ssl_mbed_log      0x3fff0d2c Server used SignatureAlgorithm 3
  828. mg_ssl_mbed_log      0x3fff0d2c Server used HashAlgorithm 4
  829. mg_ssl_mbed_log      0x3fff0d2c dumping 'signature' (70 bytes)
  830. mg_ssl_mbed_log      0x3fff0d2c 0000:  30 44 02 20 12 31 e3 ec 5d 10 ad 4c 4f 25 d9 74  0D. .1..]..LO%.t
  831. mg_ssl_mbed_log      0x3fff0d2c 0010:  28 2a b9 e1 6f 27 95 9c 8f 53 45 0f 21 e3 2d ba  (*..o'...SE.!.-.
  832. mg_ssl_mbed_log      0x3fff0d2c 0020:  ee 30 84 0f 02 20 5e 1e a9 19 ef ae cc bf 3e de  .0... ^.......>.
  833. mg_ssl_mbed_log      0x3fff0d2c 0030:  51 0f 2f d7 73 44 3d 16 fd df 27 4c 31 e7 55 88  Q./.sD=...'L1.U.
  834. mg_ssl_mbed_log      0x3fff0d2c 0040:  5e 66 14 b8 fe 25                                ^f...%
  835. mg_ssl_mbed_log      0x3fff0d2c dumping 'parameters hash' (32 bytes)
  836. mg_ssl_mbed_log      0x3fff0d2c 0000:  cf a7 f0 c1 d7 cf 45 f3 7e 03 39 be 74 7f 3a b8  ......E.~.9.t.:.
  837. mg_ssl_mbed_log      0x3fff0d2c 0010:  db e2 4e c0 d5 c3 0d 09 39 b5 1c bb a8 6a de ab  ..N.....9....j..
  838. ATCA ECDSA verify ok, verified
  839. mg_ssl_mbed_log      0x3fff0d2c <= parse server key exchange
  840. mg_ssl_mbed_log      0x3fff0d2c client state: 5
  841. mg_ssl_mbed_log      0x3fff0d2c => flush output
  842. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  843. mg_ssl_mbed_log      0x3fff0d2c => parse certificate request
  844. mg_ssl_mbed_log      0x3fff0d2c => read record
  845. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 42, type = 13, hslen = 38
  846. mg_ssl_mbed_log      0x3fff0d2c <= read record
  847. mg_ssl_mbed_log      0x3fff0d2c got a certificate request
  848. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 6,3
  849. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 6,1
  850. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 5,3
  851. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 5,1
  852. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 4,3
  853. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 4,1
  854. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 4,2
  855. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 3,3
  856. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 3,1
  857. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 3,2
  858. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 2,3
  859. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 2,1
  860. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 2,2
  861. mg_ssl_mbed_log      0x3fff0d2c <= parse certificate request
  862. mg_ssl_mbed_log      0x3fff0d2c client state: 6
  863. mg_ssl_mbed_log      0x3fff0d2c => flush output
  864. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  865. mg_ssl_mbed_log      0x3fff0d2c => parse server hello done
  866. mg_ssl_mbed_log      0x3fff0d2c => read record
  867. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 4, type = 14, hslen = 4
  868. mg_ssl_mbed_log      0x3fff0d2c <= read record
  869. mg_ssl_mbed_log      0x3fff0d2c <= parse server hello done
  870. mg_ssl_mbed_log      0x3fff0d2c client state: 7
  871. mg_ssl_mbed_log      0x3fff0d2c => flush output
  872. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  873. mg_ssl_mbed_log      0x3fff0d2c => write certificate
  874. mg_ssl_mbed_log      0x3fff0d2c own certificate #1:
  875. mg_ssl_mbed_log      0x3fff0d2c cert. version     : 3
  876. mg_ssl_mbed_log      0x3fff0d2c serial number     : 2E:9D:68:0A:4A:00:17:DD:AA:8B:9C:A1:61:07:2D:4F:8D:15:AA:88
  877. mg_ssl_mbed_log      0x3fff0d2c issuer name       : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
  878. mg_ssl_mbed_log      0x3fff0d2c subject name      : CN=esp8266_D4C621
  879. mg_ssl_mbed_log      0x3fff0d2c issued  on        : 2017-05-10 11:51:00
  880. mg_ssl_mbed_log      0x3fff0d2c expires on        : 2049-12-31 23:59:59
  881. mg_ssl_mbed_log      0x3fff0d2c signed using      : RSA with SHA-256
  882. mg_ssl_mbed_log      0x3fff0d2c EC key size       : 256 bits
  883. mg_ssl_mbed_log      0x3fff0d2c basic constraints : CA=false
  884. mg_ssl_mbed_log      0x3fff0d2c key usage         : Digital Signature
  885. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(X)' (252 bits) is:
  886. mg_ssl_mbed_log      0x3fff0d2c  0c 76 be e4 90 4b 59 72 36 07 3f f8 cb 94 ab a4
  887. mg_ssl_mbed_log      0x3fff0d2c  92 b4 74 79 41 60 df ad 98 ab b5 d1 cd ae f1 d6
  888. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(Y)' (256 bits) is:
  889. mg_ssl_mbed_log      0x3fff0d2c  c1 38 d1 ef 0e f5 f5 8c 76 f7 50 f4 56 3a 52 ef
  890. mg_ssl_mbed_log      0x3fff0d2c  2d fc 12 16 84 3a 56 dc e1 03 fc 98 df 97 79 b7
  891. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 13 => 676
  892. mg_ssl_mbed_log      0x3fff0d2c => write record
  893. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 22, version = [3:3], msglen = 663
  894. mg_ssl_mbed_log      0x3fff0d2c => flush output
  895. mg_ssl_mbed_log      0x3fff0d2c message length: 668, out_left: 668
  896. ssl_socket_send      0x3fff0d2c 668 -> 668
  897. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 668 (-0xfffffd64)
  898. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 676 => 13
  899. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  900. mg_ssl_mbed_log      0x3fff0d2c <= write record
  901. mg_ssl_mbed_log      0x3fff0d2c <= write certificate
  902. mg_ssl_mbed_log      0x3fff0d2c client state: 8
  903. mg_ssl_mbed_log      0x3fff0d2c => flush output
  904. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  905. mg_ssl_mbed_log      0x3fff0d2c => write client key exchange
  906. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 13 => 617
  907. ATCA:2 ECDH get pubkey ok
  908. mg_ssl_mbed_log      0x3fff0d2c value of 'ECDH: Q(X)' (255 bits) is:
  909. mg_ssl_mbed_log      0x3fff0d2c  75 7e fd f9 6f 60 bf 05 12 d3 71 2c d9 87 7b f5
  910. mg_ssl_mbed_log      0x3fff0d2c  15 65 3d 8a 1b 40 00 4d e4 db cc 9e b2 02 e9 22
  911. mg_ssl_mbed_log      0x3fff0d2c value of 'ECDH: Q(Y)' (256 bits) is:
  912. mg_ssl_mbed_log      0x3fff0d2c  f0 c3 71 20 d8 9d 8c 21 90 e8 a5 d0 5c cf 8d 74
  913. mg_ssl_mbed_log      0x3fff0d2c  f5 ab 73 0f 48 38 05 3b 2d d7 a9 09 3b 11 61 d7
  914. ATCA:2 ECDH ok
  915. mg_ssl_mbed_log      0x3fff0d2c value of 'ECDH: z' (252 bits) is:
  916. mg_ssl_mbed_log      0x3fff0d2c  0b d7 d9 52 03 85 e7 77 f1 61 fe 03 22 9d b4 83
  917. mg_ssl_mbed_log      0x3fff0d2c  cf a5 6a f2 6a 9e 73 d1 29 b0 81 2a 1c 1b f8 dc
  918. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 617 => 83
  919. mg_ssl_mbed_log      0x3fff0d2c => write record
  920. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 22, version = [3:3], msglen = 70
  921. mg_ssl_mbed_log      0x3fff0d2c => flush output
  922. mg_ssl_mbed_log      0x3fff0d2c message length: 75, out_left: 75
  923. ssl_socket_send      0x3fff0d2c 75 -> 75
  924. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 75 (-0xffffffb5)
  925. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 83 => 13
  926. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  927. mg_ssl_mbed_log      0x3fff0d2c <= write record
  928. mg_ssl_mbed_log      0x3fff0d2c <= write client key exchange
  929. mg_ssl_mbed_log      0x3fff0d2c client state: 9
  930. mg_ssl_mbed_log      0x3fff0d2c => flush output
  931. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  932. mg_ssl_mbed_log      0x3fff0d2c => write certificate verify
  933. mg_ssl_mbed_log      0x3fff0d2c => derive keys
  934. mg_ssl_mbed_log      0x3fff0d2c dumping 'premaster secret' (32 bytes)
  935. mg_ssl_mbed_log      0x3fff0d2c 0000:  0b d7 d9 52 03 85 e7 77 f1 61 fe 03 22 9d b4 83  ...R...w.a.."...
  936. mg_ssl_mbed_log      0x3fff0d2c 0010:  cf a5 6a f2 6a 9e 73 d1 29 b0 81 2a 1c 1b f8 dc  ..j.j.s.)..*....
  937. mg_ssl_mbed_log      0x3fff0d2c ciphersuite = TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
  938. mg_ssl_mbed_log      0x3fff0d2c dumping 'master secret' (48 bytes)
  939. mg_ssl_mbed_log      0x3fff0d2c 0000:  e0 99 24 14 7f 36 61 ef 33 59 6a 61 18 22 d9 2d  ..$..6a.3Yja.".-
  940. mg_ssl_mbed_log      0x3fff0d2c 0010:  eb 59 36 7c ca 11 e7 a9 ab a0 14 31 75 fb d2 85  .Y6|.......1u...
  941. mg_ssl_mbed_log      0x3fff0d2c 0020:  3e 8f 44 d6 bf f2 b3 4e e8 33 6f a1 f1 1d 5c 56  >.D....N.3o...\V
  942. mg_ssl_mbed_log      0x3fff0d2c keylen: 16, minlen: 24, ivlen: 12, maclen: 0
  943. mg_ssl_mbed_log      0x3fff0d2c <= derive keys
  944. mg_ssl_mbed_log      0x3fff0d2c => calc verify sha256
  945. mg_ssl_mbed_log      0x3fff0d2c dumping 'calculated verify result' (32 bytes)
  946. mg_ssl_mbed_log      0x3fff0d2c 0000:  af ea 9e 04 0a 5c 60 01 4d f8 d0 4b ab 3d 1b cf  .....\`.M..K.=..
  947. mg_ssl_mbed_log      0x3fff0d2c 0010:  fa f9 4d 82 9b 5b 04 e4 ec 05 09 dc 1e 6d 19 b3  ..M..[.......m..
  948. mg_ssl_mbed_log      0x3fff0d2c <= calc verify
  949. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 13 => 21
  950. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 21 => 621
  951. ATCA:0 ECDSA sign ok
  952. mg_ssl_mbed_log      0x3fff0d2c => write record
  953. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 22, version = [3:3], msglen = 78
  954. mg_ssl_mbed_log      0x3fff0d2c => flush output
  955. mg_ssl_mbed_log      0x3fff0d2c message length: 83, out_left: 83
  956. ssl_socket_send      0x3fff0d2c 83 -> 83
  957. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 83 (-0xffffffad)
  958. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 621 => 13
  959. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  960. mg_ssl_mbed_log      0x3fff0d2c <= write record
  961. mg_ssl_mbed_log      0x3fff0d2c <= write certificate verify
  962. mg_ssl_mbed_log      0x3fff0d2c client state: 10
  963. mg_ssl_mbed_log      0x3fff0d2c => flush output
  964. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  965. mg_ssl_mbed_log      0x3fff0d2c => write change cipher spec
  966. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 13 => 14
  967. mg_ssl_mbed_log      0x3fff0d2c => write record
  968. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 20, version = [3:3], msglen = 1
  969. mg_ssl_mbed_log      0x3fff0d2c => flush output
  970. mg_ssl_mbed_log      0x3fff0d2c message length: 6, out_left: 6
  971. ssl_socket_send      0x3fff0d2c 6 -> 6
  972. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 6 (-0xfffffffa)
  973. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 14 => 13
  974. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  975. mg_ssl_mbed_log      0x3fff0d2c <= write record
  976. mg_ssl_mbed_log      0x3fff0d2c <= write change cipher spec
  977. mg_ssl_mbed_log      0x3fff0d2c client state: 11
  978. mg_ssl_mbed_log      0x3fff0d2c => flush output
  979. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  980. mg_ssl_mbed_log      0x3fff0d2c => write finished
  981. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 13 => 37
  982. mg_ssl_mbed_log      0x3fff0d2c => calc  finished tls sha256
  983. mg_ssl_mbed_log      0x3fff0d2c dumping 'calc finished result' (12 bytes)
  984. mg_ssl_mbed_log      0x3fff0d2c 0000:  4b ae 58 2e cf 1f 56 b3 e2 d3 89 73              K.X...V....s
  985. mg_ssl_mbed_log      0x3fff0d2c <= calc  finished
  986. mg_ssl_mbed_log      0x3fff0d2c switching to new transform spec for outbound data
  987. mg_ssl_mbed_log      0x3fff0d2c => write record
  988. mg_ssl_mbed_log      0x3fff0d2c => encrypt buf
  989. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 37 => 61
  990. mg_ssl_mbed_log      0x3fff0d2c before encrypt: msglen = 24, including 0 bytes of padding
  991. mg_ssl_mbed_log      0x3fff0d2c <= encrypt buf
  992. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 22, version = [3:3], msglen = 40
  993. mg_ssl_mbed_log      0x3fff0d2c => flush output
  994. mg_ssl_mbed_log      0x3fff0d2c message length: 45, out_left: 45
  995. ssl_socket_send      0x3fff0d2c 45 -> 45
  996. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 45 (-0xffffffd3)
  997. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 61 => 21
  998. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  999. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1000. mg_ssl_mbed_log      0x3fff0d2c <= write finished
  1001. mg_ssl_mbed_log      0x3fff0d2c client state: 12
  1002. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1003. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1004. mg_ssl_mbed_log      0x3fff0d2c => parse change cipher spec
  1005. mg_ssl_mbed_log      0x3fff0d2c => read record
  1006. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1007. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 2603
  1008. mg_ssl_mbed_log      0x3fff0d2c shrink in_buf 2603 => 13
  1009. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1010. mg_ssl_mbed_log      0x3fff0d2c <= handshake
  1011. mongoose_poll        New heap free LWM: 27128
  1012. mg_ssl_mbed_log      0x3fff0d2c => handshake
  1013. mg_ssl_mbed_log      0x3fff0d2c client state: 12
  1014. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1015. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1016. mg_ssl_mbed_log      0x3fff0d2c => parse change cipher spec
  1017. mg_ssl_mbed_log      0x3fff0d2c => read record
  1018. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1019. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1020. ssl_socket_recv      0x3fff0d2c <- 5
  1021. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1022. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  1023. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1024. mg_ssl_mbed_log      0x3fff0d2c input record: msgtype = 20, version = [3:3], msglen = 1
  1025. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1026. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 6, in_buf_size: 13
  1027. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 13 => 14
  1028. ssl_socket_recv      0x3fff0d2c <- 1
  1029. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 6, in_buf_size: 14
  1030. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 1 (-0xffffffff)
  1031. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1032. mg_ssl_mbed_log      0x3fff0d2c <= read record
  1033. mg_ssl_mbed_log      0x3fff0d2c switching to new transform spec for inbound data
  1034. mg_ssl_mbed_log      0x3fff0d2c <= parse change cipher spec
  1035. mg_ssl_mbed_log      0x3fff0d2c client state: 13
  1036. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1037. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1038. mg_ssl_mbed_log      0x3fff0d2c => parse finished
  1039. mg_ssl_mbed_log      0x3fff0d2c => calc  finished tls sha256
  1040. mg_ssl_mbed_log      0x3fff0d2c dumping 'calc finished result' (12 bytes)
  1041. mg_ssl_mbed_log      0x3fff0d2c 0000:  78 63 74 20 f8 28 7a ba 23 ce ea fa              xct .(z.#...
  1042. mg_ssl_mbed_log      0x3fff0d2c <= calc  finished
  1043. mg_ssl_mbed_log      0x3fff0d2c => read record
  1044. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1045. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 14
  1046. mg_ssl_mbed_log      0x3fff0d2c shrink in_buf 14 => 13
  1047. ssl_socket_recv      0x3fff0d2c <- 5
  1048. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1049. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  1050. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1051. mg_ssl_mbed_log      0x3fff0d2c input record: msgtype = 22, version = [3:3], msglen = 40
  1052. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1053. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 45, in_buf_size: 13
  1054. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 13 => 53
  1055. ssl_socket_recv      0x3fff0d2c <- 40
  1056. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 45, in_buf_size: 53
  1057. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 40 (-0xffffffd8)
  1058. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1059. mg_ssl_mbed_log      0x3fff0d2c => decrypt buf
  1060. mg_ssl_mbed_log      0x3fff0d2c <= decrypt buf
  1061. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 16, type = 20, hslen = 16
  1062. mg_ssl_mbed_log      0x3fff0d2c <= read record
  1063. mg_ssl_mbed_log      0x3fff0d2c <= parse finished
  1064. mg_ssl_mbed_log      0x3fff0d2c client state: 14
  1065. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1066. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1067. mg_ssl_mbed_log      0x3fff0d2c handshake: done
  1068. mg_ssl_mbed_log      0x3fff0d2c client state: 15
  1069. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1070. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1071. mg_ssl_mbed_log      0x3fff0d2c => handshake wrapup
  1072. mg_ssl_mbed_log      0x3fff0d2c => handshake wrapup: final free
  1073. mg_ssl_mbed_log      0x3fff0d2c <= handshake wrapup: final free
  1074. mg_ssl_mbed_log      0x3fff0d2c <= handshake wrapup
  1075. mg_ssl_mbed_log      0x3fff0d2c <= handshake
  1076. mgos_mqtt_ev         MQTT Connect (1)
  1077. mg_ssl_mbed_log      0x3fff0d2c => write
  1078. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 21 => 47
  1079. mg_ssl_mbed_log      0x3fff0d2c => write record
  1080. mg_ssl_mbed_log      0x3fff0d2c => encrypt buf
  1081. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 47 => 71
  1082. mg_ssl_mbed_log      0x3fff0d2c before encrypt: msglen = 34, including 0 bytes of padding
  1083. mg_ssl_mbed_log      0x3fff0d2c <= encrypt buf
  1084. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 23, version = [3:3], msglen = 50
  1085. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1086. mg_ssl_mbed_log      0x3fff0d2c message length: 55, out_left: 55
  1087. ssl_socket_send      0x3fff0d2c 55 -> 55
  1088. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 55 (-0xffffffc9)
  1089. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 71 => 21
  1090. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1091. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1092. mg_ssl_mbed_log      0x3fff0d2c <= write
  1093. mg_ssl_mbed_log      0x3fff0d2c => read
  1094. mg_ssl_mbed_log      0x3fff0d2c => read record
  1095. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1096. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 53
  1097. mg_ssl_mbed_log      0x3fff0d2c shrink in_buf 53 => 13
  1098. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1099. mg_ssl_mbed_log      0x3fff0d2c => read
  1100. mg_ssl_mbed_log      0x3fff0d2c => read record
  1101. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1102. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1103. ssl_socket_recv      0x3fff0d2c <- 5
  1104. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1105. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  1106. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1107. mg_ssl_mbed_log      0x3fff0d2c input record: msgtype = 23, version = [3:3], msglen = 28
  1108. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1109. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 33, in_buf_size: 13
  1110. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 13 => 41
  1111. ssl_socket_recv      0x3fff0d2c <- 28
  1112. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 33, in_buf_size: 41
  1113. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 28 (-0xffffffe4)
  1114. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1115. mg_ssl_mbed_log      0x3fff0d2c => decrypt buf
  1116. mg_ssl_mbed_log      0x3fff0d2c <= decrypt buf
  1117. mg_ssl_mbed_log      0x3fff0d2c <= read record
  1118. mg_ssl_mbed_log      0x3fff0d2c <= read
  1119. mgos_mqtt_ev         MQTT event: 202
  1120. mgos_mqtt_ev         MQTT CONNACK 0
  1121. ev_handler           CONNACK: 0
  1122. sub                  Subscribed to /request
  1123. sub                  Subscribed to /request/1AFE34D4C621
  1124. mgos_mqtt_pub        Publishing to register_device @ 0 (43): [{"chipid":"1AFE34D4C621","dev_type":"WIFI"}]
  1125. mgos_mqtt_ev         Subscribing to '1AFE34D4C621/rpc'
  1126. mgos_mqtt_ev         Subscribing to '1AFE34D4C621/rpc/#'
  1127. mg_ssl_mbed_log      0x3fff0d2c => read
  1128. mg_ssl_mbed_log      0x3fff0d2c => read record
  1129. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1130. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 41
  1131. mg_ssl_mbed_log      0x3fff0d2c shrink in_buf 41 => 13
  1132. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1133. mg_ssl_mbed_log      0x3fff0d2c => write
  1134. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 21 => 174
  1135. mg_ssl_mbed_log      0x3fff0d2c => write record
  1136. mg_ssl_mbed_log      0x3fff0d2c => encrypt buf
  1137. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 174 => 198
  1138. mg_ssl_mbed_log      0x3fff0d2c before encrypt: msglen = 161, including 0 bytes of padding
  1139. mg_ssl_mbed_log      0x3fff0d2c <= encrypt buf
  1140. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 23, version = [3:3], msglen = 177
  1141. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1142. mg_ssl_mbed_log      0x3fff0d2c message length: 182, out_left: 182
  1143. ssl_socket_send      0x3fff0d2c 182 -> 182
  1144. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 182 (-0xffffff4a)
  1145. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 198 => 21
  1146. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1147. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1148. mg_ssl_mbed_log      0x3fff0d2c <= write
  1149. mg_ssl_mbed_log      0x3fff0d2c => read
  1150. mg_ssl_mbed_log      0x3fff0d2c => read record
  1151. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1152. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1153. ssl_socket_recv      0x3fff0d2c <- 5
  1154. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1155. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  1156. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1157. mg_ssl_mbed_log      0x3fff0d2c input record: msgtype = 21, version = [3:3], msglen = 26
  1158. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1159. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 31, in_buf_size: 13
  1160. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 13 => 39
  1161. ssl_socket_recv      0x3fff0d2c <- 26
  1162. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 31, in_buf_size: 39
  1163. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 26 (-0xffffffe6)
  1164. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1165. mg_ssl_mbed_log      0x3fff0d2c => decrypt buf
  1166. mg_ssl_mbed_log      0x3fff0d2c <= decrypt buf
  1167. mg_ssl_mbed_log      0x3fff0d2c got an alert message, type: [1:0]
  1168. mg_ssl_mbed_log      0x3fff0d2c is a close notify message
  1169. mg_ssl_mbed_log      0x3fff0d2c mbedtls_ssl_handle_message_type() returned -30848 (-0x7880)
  1170. mg_ssl_mbed_log      0x3fff0d2c mbedtls_ssl_read_record() returned -30848 (-0x7880)
  1171. mg_ssl_mbed_log      0x3fff0d2c => write close notify
  1172. mg_ssl_mbed_log      0x3fff0d2c => send alert message
  1173. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 21 => 23
  1174. mg_ssl_mbed_log      0x3fff0d2c => write record
  1175. mg_ssl_mbed_log      0x3fff0d2c => encrypt buf
  1176. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 23 => 47
  1177. mg_ssl_mbed_log      0x3fff0d2c before encrypt: msglen = 10, including 0 bytes of padding
  1178. mg_ssl_mbed_log      0x3fff0d2c <= encrypt buf
  1179. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 21, version = [3:3], msglen = 26
  1180. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1181. mg_ssl_mbed_log      0x3fff0d2c message length: 31, out_left: 31
  1182. ssl_socket_send      0x3fff0d2c 31 -> 31
  1183. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 31 (-0xffffffe1)
  1184. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 47 => 21
  1185. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1186. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1187. mg_ssl_mbed_log      0x3fff0d2c <= send alert message
  1188. mg_ssl_mbed_log      0x3fff0d2c <= write close notify
  1189. mgos_mqtt_ev         MQTT Disconnect
  1190. mqtt_global_reconnec MQTT connecting after 1971 ms
  1191. mg_ssl_mbed_log      0x3fff0d2c => free
  1192. mg_ssl_mbed_log      0x3fff0d2c <= free
  1193. mqtt_global_connect  MQTT connecting to a2wvu7vrfjdfdx.iot.us-west-2.amazonaws.com:8883
  1194. set_spiffs_errno     aws-iot-c74e641add.crt.pem: res = 1, e = -10002
  1195. set_spiffs_errno     fstat: res = 0, e = -10002
  1196. set_spiffs_errno     fstat: res = 0, e = -10002
  1197. set_spiffs_errno     lseek: res = 0, e = -10002
  1198. set_spiffs_errno     lseek: res = 1024, e = -10002
  1199. set_spiffs_errno     read: res = 117, e = -10002
  1200. set_spiffs_errno     lseek: res = 0, e = -10002
  1201. set_spiffs_errno     read: res = 1024, e = -10002
  1202. set_spiffs_errno     read: res = 117, e = -10002
  1203. set_spiffs_errno     close: res = 0, e = -10002
  1204. set_spiffs_errno     ca-verisign-ecc-g2.crt.pem: res = 1, e = -10002
  1205. set_spiffs_errno     fstat: res = 0, e = -10002
  1206. set_spiffs_errno     fstat: res = 0, e = -10002
  1207. set_spiffs_errno     lseek: res = 0, e = -10002
  1208. set_spiffs_errno     lseek: res = 1024, e = -10002
  1209. set_spiffs_errno     read: res = 566, e = -10002
  1210. set_spiffs_errno     lseek: res = 0, e = -10002
  1211. set_spiffs_errno     read: res = 1024, e = -10002
  1212. set_spiffs_errno     read: res = 566, e = -10002
  1213. set_spiffs_errno     close: res = 0, e = -10002
  1214. mg_ssl_mbed_log      0x3fff0d2c => handshake
  1215. mg_ssl_mbed_log      0x3fff0d2c client state: 0
  1216. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1217. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1218. mg_ssl_mbed_log      0x3fff0d2c client state: 1
  1219. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1220. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1221. mg_ssl_mbed_log      0x3fff0d2c => write client hello
  1222. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 0 => 145
  1223. mg_ssl_mbed_log      0x3fff0d2c client hello, max version: [3:3]
  1224. mg_ssl_mbed_log      0x3fff0d2c dumping 'client hello, random bytes' (32 bytes)
  1225. mg_ssl_mbed_log      0x3fff0d2c 0000:  c1 a6 8d 2c 63 ff 4e 77 13 5d 77 bf 6e d9 8f 0b  ...,c.Nw.]w.n...
  1226. mg_ssl_mbed_log      0x3fff0d2c 0010:  a0 67 2a 5f fe 6f 53 87 5f a1 d4 ad b5 95 48 3d  .g*_.oS._.....H=
  1227. mg_ssl_mbed_log      0x3fff0d2c client hello, session id len.: 0
  1228. mg_ssl_mbed_log      0x3fff0d2c dumping 'client hello, session id' (0 bytes)
  1229. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c02b
  1230. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c02f
  1231. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: 009e
  1232. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: 0067
  1233. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c02d
  1234. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c025
  1235. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c004
  1236. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c031
  1237. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c029
  1238. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: c00e
  1239. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: 009c
  1240. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: 003c
  1241. mg_ssl_mbed_log      0x3fff0d2c client hello, add ciphersuite: 002f
  1242. mg_ssl_mbed_log      0x3fff0d2c client hello, got 14 ciphersuites
  1243. mg_ssl_mbed_log      0x3fff0d2c client hello, compress len.: 1
  1244. mg_ssl_mbed_log      0x3fff0d2c client hello, compress alg.: 0
  1245. mg_ssl_mbed_log      0x3fff0d2c client hello, adding server name extension: a2wvu7vrfjdfdx.iot.us-west-2.amazonaws.com
  1246. mg_ssl_mbed_log      0x3fff0d2c client hello, adding signature_algorithms extension
  1247. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 145 => 155
  1248. mg_ssl_mbed_log      0x3fff0d2c client hello, adding supported_elliptic_curves extension
  1249. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 155 => 163
  1250. mg_ssl_mbed_log      0x3fff0d2c client hello, adding supported_point_formats extension
  1251. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 163 => 169
  1252. mg_ssl_mbed_log      0x3fff0d2c client hello, adding encrypt_then_mac extension
  1253. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 169 => 173
  1254. mg_ssl_mbed_log      0x3fff0d2c client hello, adding extended_master_secret extension
  1255. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 173 => 177
  1256. mg_ssl_mbed_log      0x3fff0d2c client hello, total extension length: 91
  1257. mg_ssl_mbed_log      0x3fff0d2c => write record
  1258. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 22, version = [3:3], msglen = 164
  1259. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1260. mg_ssl_mbed_log      0x3fff0d2c message length: 169, out_left: 169
  1261. ssl_socket_send      0x3fff0d2c 169 -> 169
  1262. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 169 (-0xffffff57)
  1263. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 177 => 13
  1264. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1265. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1266. mg_ssl_mbed_log      0x3fff0d2c <= write client hello
  1267. mg_ssl_mbed_log      0x3fff0d2c client state: 2
  1268. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1269. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1270. mg_ssl_mbed_log      0x3fff0d2c => parse server hello
  1271. mg_ssl_mbed_log      0x3fff0d2c => read record
  1272. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1273. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 0
  1274. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 0 => 13
  1275. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1276. mg_ssl_mbed_log      0x3fff0d2c <= handshake
  1277. mg_ssl_mbed_log      0x3fff0d2c => handshake
  1278. mg_ssl_mbed_log      0x3fff0d2c client state: 2
  1279. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1280. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1281. mg_ssl_mbed_log      0x3fff0d2c => parse server hello
  1282. mg_ssl_mbed_log      0x3fff0d2c => read record
  1283. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1284. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1285. ssl_socket_recv      0x3fff0d2c <- 5
  1286. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1287. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  1288. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1289. mg_ssl_mbed_log      0x3fff0d2c input record: msgtype = 22, version = [3:3], msglen = 2590
  1290. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1291. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 2595, in_buf_size: 13
  1292. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 13 => 2603
  1293. ssl_socket_recv      0x3fff0d2c <- 1455
  1294. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 2595, in_buf_size: 2603
  1295. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 1455 (-0xfffffa51)
  1296. mg_ssl_mbed_log      0x3fff0d2c in_left: 1460, nb_want: 2595, in_buf_size: 2603
  1297. mg_ssl_mbed_log      0x3fff0d2c <= handshake
  1298. mg_ssl_mbed_log      0x3fff0d2c => handshake
  1299. mg_ssl_mbed_log      0x3fff0d2c client state: 2
  1300. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1301. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1302. mg_ssl_mbed_log      0x3fff0d2c => parse server hello
  1303. mg_ssl_mbed_log      0x3fff0d2c => read record
  1304. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1305. mg_ssl_mbed_log      0x3fff0d2c in_left: 1460, nb_want: 5, in_buf_size: 2603
  1306. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1307. mg_ssl_mbed_log      0x3fff0d2c input record: msgtype = 22, version = [3:3], msglen = 2590
  1308. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1309. mg_ssl_mbed_log      0x3fff0d2c in_left: 1460, nb_want: 2595, in_buf_size: 2603
  1310. ssl_socket_recv      0x3fff0d2c <- 1135
  1311. mg_ssl_mbed_log      0x3fff0d2c in_left: 1460, nb_want: 2595, in_buf_size: 2603
  1312. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 1135 (-0xfffffb91)
  1313. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1314. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 2590, type = 2, hslen = 81
  1315. mg_ssl_mbed_log      0x3fff0d2c <= read record
  1316. mg_ssl_mbed_log      0x3fff0d2c dumping 'server hello, version' (2 bytes)
  1317. mg_ssl_mbed_log      0x3fff0d2c 0000:  03 03                                            ..
  1318. mg_ssl_mbed_log      0x3fff0d2c server hello, current time: 1494487520
  1319. mg_ssl_mbed_log      0x3fff0d2c dumping 'server hello, random bytes' (32 bytes)
  1320. mg_ssl_mbed_log      0x3fff0d2c 0000:  59 14 11 e0 6d 80 58 8e 0c 44 a1 14 82 9f e6 f2  Y...m.X..D......
  1321. mg_ssl_mbed_log      0x3fff0d2c 0010:  43 3f fc 97 4e c6 96 c0 11 8f d3 15 e1 2f 37 7c  C?..N......../7|
  1322. mg_ssl_mbed_log      0x3fff0d2c server hello, session id len.: 32
  1323. mg_ssl_mbed_log      0x3fff0d2c dumping 'server hello, session id' (32 bytes)
  1324. mg_ssl_mbed_log      0x3fff0d2c 0000:  59 14 11 e0 c4 c1 b4 94 ad 1d 51 8f 2e 6d 31 57  Y.........Q..m1W
  1325. mg_ssl_mbed_log      0x3fff0d2c 0010:  57 a1 30 a0 a1 d5 a2 2d fd dd 12 9d 1f bd c4 77  W.0....-.......w
  1326. mg_ssl_mbed_log      0x3fff0d2c no session has been resumed
  1327. mg_ssl_mbed_log      0x3fff0d2c server hello, chosen ciphersuite: c02b
  1328. mg_ssl_mbed_log      0x3fff0d2c server hello, compress alg.: 0
  1329. mg_ssl_mbed_log      0x3fff0d2c server hello, chosen ciphersuite: TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
  1330. mg_ssl_mbed_log      0x3fff0d2c server hello, total extension length: 5
  1331. mg_ssl_mbed_log      0x3fff0d2c found renegotiation extension
  1332. mg_ssl_mbed_log      0x3fff0d2c <= parse server hello
  1333. mg_ssl_mbed_log      0x3fff0d2c client state: 3
  1334. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1335. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1336. mg_ssl_mbed_log      0x3fff0d2c => parse certificate
  1337. mg_ssl_mbed_log      0x3fff0d2c => read record
  1338. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 2509, type = 11, hslen = 2320
  1339. mg_ssl_mbed_log      0x3fff0d2c <= read record
  1340. mg_ssl_mbed_log      0x3fff0d2c peer certificate #1:
  1341. mg_ssl_mbed_log      0x3fff0d2c cert. version     : 3
  1342. mg_ssl_mbed_log      0x3fff0d2c serial number     : 20:88:52:7E:45:DF:8F:76:68:0D:39:EA:E2:26:12:D2
  1343. mg_ssl_mbed_log      0x3fff0d2c issuer name       : C=US, O=Symantec Corporation, OU=Symantec Trust Network, CN=Symantec Class 3 ECC 256 bit SSL CA - G2
  1344. mg_ssl_mbed_log      0x3fff0d2c subject name      : C=US, ST=Washington, L=Seattle, O=Amazon.com, Inc., CN=*.iot.us-west-2.amazonaws.com
  1345. mg_ssl_mbed_log      0x3fff0d2c issued  on        : 2017-03-07 00:00:00
  1346. mg_ssl_mbed_log      0x3fff0d2c expires on        : 2018-03-08 23:59:59
  1347. mg_ssl_mbed_log      0x3fff0d2c signed using      : ECDSA with SHA256
  1348. mg_ssl_mbed_log      0x3fff0d2c EC key size       : 256 bits
  1349. mg_ssl_mbed_log      0x3fff0d2c basic constraints : CA=false
  1350. mg_ssl_mbed_log      0x3fff0d2c subject alt name  : iot.us-west-2.amazonaws.com, *.iot.us-west-2.amazonaws.com
  1351. mg_ssl_mbed_log      0x3fff0d2c key usage         : Digital Signature
  1352. mg_ssl_mbed_log      0x3fff0d2c ext key usage     : TLS Web Server Authentication, TLS Web Client Authentication
  1353. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(X)' (255 bits) is:
  1354. mg_ssl_mbed_log      0x3fff0d2c  70 14 ad b7 d2 d6 20 cb 27 39 fb 86 1b de 9d d2
  1355. mg_ssl_mbed_log      0x3fff0d2c  50 75 0b 71 35 9e 24 5f aa eb e4 d0 a2 31 90 56
  1356. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(Y)' (254 bits) is:
  1357. mg_ssl_mbed_log      0x3fff0d2c  34 c5 39 fc 2c 34 9d 25 c7 f7 b3 2f 8e ff 35 b7
  1358. mg_ssl_mbed_log      0x3fff0d2c  7a 4f 48 e2 a7 48 fd 0a 84 81 0f 58 1b f5 0a b2
  1359. mg_ssl_mbed_log      0x3fff0d2c peer certificate #2:
  1360. mg_ssl_mbed_log      0x3fff0d2c cert. version     : 3
  1361. mg_ssl_mbed_log      0x3fff0d2c serial number     : 3F:92:87:BE:9D:1D:A4:A3:7A:9D:F6:28:2E:77:5A:C4
  1362. mg_ssl_mbed_log      0x3fff0d2c issuer name       : C=US, O=VeriSign, Inc., OU=VeriSign Trust Network, OU=(c) 2006 VeriSign, Inc. - For authorized use only, CN=VeriSign Class 3 Public Primary Certification Authority - G5
  1363. mg_ssl_mbed_log      0x3fff0d2c subject name      : C=US, O=Symantec Corporation, OU=Symantec Trust Network, CN=Symantec Class 3 ECC 256 bit SSL CA - G2
  1364. mg_ssl_mbed_log      0x3fff0d2c issued  on        : 2015-05-12 00:00:00
  1365. mg_ssl_mbed_log      0x3fff0d2c expires on        : 2025-05-11 23:59:59
  1366. mg_ssl_mbed_log      0x3fff0d2c signed using      : RSA with SHA-256
  1367. mg_ssl_mbed_log      0x3fff0d2c EC key size       : 256 bits
  1368. mg_ssl_mbed_log      0x3fff0d2c basic constraints : CA=true, max_pathlen=0
  1369. mg_ssl_mbed_log      0x3fff0d2c subject alt name  :
  1370. mg_ssl_mbed_log      0x3fff0d2c key usage         : Key Cert Sign, CRL Sign
  1371. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(X)' (252 bits) is:
  1372. mg_ssl_mbed_log      0x3fff0d2c  0f 1b a4 91 d7 e7 ac e7 d1 4e 4e b7 64 5b e1 8f
  1373. mg_ssl_mbed_log      0x3fff0d2c  7f 6e 04 d3 ab 38 db 44 b7 40 5c 6d bd 96 96 37
  1374. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(Y)' (256 bits) is:
  1375. mg_ssl_mbed_log      0x3fff0d2c  df 79 89 86 67 f7 b1 1f 08 9e fd 63 3b 46 8c 9f
  1376. mg_ssl_mbed_log      0x3fff0d2c  bd 53 e8 15 dc 97 3e 2b 81 46 ad 86 7f 0e 01 39
  1377. ATCA ECDSA verify ok, verified
  1378. mg_ssl_mbed_log      0x3fff0d2c <= parse certificate
  1379. mg_ssl_mbed_log      0x3fff0d2c client state: 4
  1380. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1381. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1382. mg_ssl_mbed_log      0x3fff0d2c => parse server key exchange
  1383. mg_ssl_mbed_log      0x3fff0d2c => read record
  1384. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 189, type = 12, hslen = 147
  1385. mg_ssl_mbed_log      0x3fff0d2c <= read record
  1386. mg_ssl_mbed_log      0x3fff0d2c dumping 'server key exchange' (143 bytes)
  1387. mg_ssl_mbed_log      0x3fff0d2c 0000:  03 00 17 41 04 5c 2e 64 98 18 4c eb 7a 46 cf 7b  ...A.\.d..L.zF.{
  1388. mg_ssl_mbed_log      0x3fff0d2c 0010:  21 c0 cd 7a a7 d5 87 1a 24 42 67 11 30 11 1f 9c  !..z....$Bg.0...
  1389. mg_ssl_mbed_log      0x3fff0d2c 0020:  59 08 19 e1 cb 50 12 aa 3b 98 64 5d a0 d3 de 26  Y....P..;.d]...&
  1390. mg_ssl_mbed_log      0x3fff0d2c 0030:  07 ba 24 ed b2 79 a8 a1 a3 9f 2d b5 89 a8 e6 7c  ..$..y....-....|
  1391. mg_ssl_mbed_log      0x3fff0d2c 0040:  b6 63 1a f8 05 04 03 00 46 30 44 02 20 15 af b8  .c......F0D. ...
  1392. mg_ssl_mbed_log      0x3fff0d2c 0050:  2e f2 49 6b b5 a9 cb 32 d6 24 ed 79 ee 6f 90 1f  ..Ik...2.$.y.o..
  1393. mg_ssl_mbed_log      0x3fff0d2c 0060:  85 23 3d a9 fc cb 17 08 9e b3 5d 66 74 02 20 4e  .#=.......]ft. N
  1394. mg_ssl_mbed_log      0x3fff0d2c 0070:  b3 b9 ec a0 7e 45 f8 4d 3c da a7 90 c7 7f cb 1d  ....~E.M<.......
  1395. mg_ssl_mbed_log      0x3fff0d2c 0080:  b8 fe 13 93 37 d1 04 5e e2 b9 ab 53 04 1b e4     ....7..^...S...
  1396. mg_ssl_mbed_log      0x3fff0d2c ECDH curve: secp256r1
  1397. mg_ssl_mbed_log      0x3fff0d2c value of 'ECDH: Qp(X)' (255 bits) is:
  1398. mg_ssl_mbed_log      0x3fff0d2c  5c 2e 64 98 18 4c eb 7a 46 cf 7b 21 c0 cd 7a a7
  1399. mg_ssl_mbed_log      0x3fff0d2c  d5 87 1a 24 42 67 11 30 11 1f 9c 59 08 19 e1 cb
  1400. mg_ssl_mbed_log      0x3fff0d2c value of 'ECDH: Qp(Y)' (255 bits) is:
  1401. mg_ssl_mbed_log      0x3fff0d2c  50 12 aa 3b 98 64 5d a0 d3 de 26 07 ba 24 ed b2
  1402. mg_ssl_mbed_log      0x3fff0d2c  79 a8 a1 a3 9f 2d b5 89 a8 e6 7c b6 63 1a f8 05
  1403. mg_ssl_mbed_log      0x3fff0d2c Server used SignatureAlgorithm 3
  1404. mg_ssl_mbed_log      0x3fff0d2c Server used HashAlgorithm 4
  1405. mg_ssl_mbed_log      0x3fff0d2c dumping 'signature' (70 bytes)
  1406. mg_ssl_mbed_log      0x3fff0d2c 0000:  30 44 02 20 15 af b8 2e f2 49 6b b5 a9 cb 32 d6  0D. .....Ik...2.
  1407. mg_ssl_mbed_log      0x3fff0d2c 0010:  24 ed 79 ee 6f 90 1f 85 23 3d a9 fc cb 17 08 9e  $.y.o...#=......
  1408. mg_ssl_mbed_log      0x3fff0d2c 0020:  b3 5d 66 74 02 20 4e b3 b9 ec a0 7e 45 f8 4d 3c  .]ft. N....~E.M<
  1409. mg_ssl_mbed_log      0x3fff0d2c 0030:  da a7 90 c7 7f cb 1d b8 fe 13 93 37 d1 04 5e e2  ...........7..^.
  1410. mg_ssl_mbed_log      0x3fff0d2c 0040:  b9 ab 53 04 1b e4                                ..S...
  1411. mg_ssl_mbed_log      0x3fff0d2c dumping 'parameters hash' (32 bytes)
  1412. mg_ssl_mbed_log      0x3fff0d2c 0000:  cf ce ad d7 ea 0d e9 a6 21 05 6f 09 76 a1 e1 e6  ........!.o.v...
  1413. mg_ssl_mbed_log      0x3fff0d2c 0010:  83 fa af 2d d4 56 94 91 6f 0d c2 b8 65 3e 56 80  ...-.V..o...e>V.
  1414. ATCA ECDSA verify ok, verified
  1415. mg_ssl_mbed_log      0x3fff0d2c <= parse server key exchange
  1416. mg_ssl_mbed_log      0x3fff0d2c client state: 5
  1417. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1418. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1419. mg_ssl_mbed_log      0x3fff0d2c => parse certificate request
  1420. mg_ssl_mbed_log      0x3fff0d2c => read record
  1421. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 42, type = 13, hslen = 38
  1422. mg_ssl_mbed_log      0x3fff0d2c <= read record
  1423. mg_ssl_mbed_log      0x3fff0d2c got a certificate request
  1424. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 6,3
  1425. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 6,1
  1426. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 5,3
  1427. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 5,1
  1428. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 4,3
  1429. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 4,1
  1430. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 4,2
  1431. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 3,3
  1432. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 3,1
  1433. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 3,2
  1434. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 2,3
  1435. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 2,1
  1436. mg_ssl_mbed_log      0x3fff0d2c Supported Signature Algorithm found: 2,2
  1437. mg_ssl_mbed_log      0x3fff0d2c <= parse certificate request
  1438. mg_ssl_mbed_log      0x3fff0d2c client state: 6
  1439. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1440. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1441. mg_ssl_mbed_log      0x3fff0d2c => parse server hello done
  1442. mg_ssl_mbed_log      0x3fff0d2c => read record
  1443. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 4, type = 14, hslen = 4
  1444. mg_ssl_mbed_log      0x3fff0d2c <= read record
  1445. mg_ssl_mbed_log      0x3fff0d2c <= parse server hello done
  1446. mg_ssl_mbed_log      0x3fff0d2c client state: 7
  1447. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1448. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1449. mg_ssl_mbed_log      0x3fff0d2c => write certificate
  1450. mg_ssl_mbed_log      0x3fff0d2c own certificate #1:
  1451. mg_ssl_mbed_log      0x3fff0d2c cert. version     : 3
  1452. mg_ssl_mbed_log      0x3fff0d2c serial number     : 2E:9D:68:0A:4A:00:17:DD:AA:8B:9C:A1:61:07:2D:4F:8D:15:AA:88
  1453. mg_ssl_mbed_log      0x3fff0d2c issuer name       : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
  1454. mg_ssl_mbed_log      0x3fff0d2c subject name      : CN=esp8266_D4C621
  1455. mg_ssl_mbed_log      0x3fff0d2c issued  on        : 2017-05-10 11:51:00
  1456. mg_ssl_mbed_log      0x3fff0d2c expires on        : 2049-12-31 23:59:59
  1457. mg_ssl_mbed_log      0x3fff0d2c signed using      : RSA with SHA-256
  1458. mg_ssl_mbed_log      0x3fff0d2c EC key size       : 256 bits
  1459. mg_ssl_mbed_log      0x3fff0d2c basic constraints : CA=false
  1460. mg_ssl_mbed_log      0x3fff0d2c key usage         : Digital Signature
  1461. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(X)' (252 bits) is:
  1462. mg_ssl_mbed_log      0x3fff0d2c  0c 76 be e4 90 4b 59 72 36 07 3f f8 cb 94 ab a4
  1463. mg_ssl_mbed_log      0x3fff0d2c  92 b4 74 79 41 60 df ad 98 ab b5 d1 cd ae f1 d6
  1464. mg_ssl_mbed_log      0x3fff0d2c value of 'crt->eckey.Q(Y)' (256 bits) is:
  1465. mg_ssl_mbed_log      0x3fff0d2c  c1 38 d1 ef 0e f5 f5 8c 76 f7 50 f4 56 3a 52 ef
  1466. mg_ssl_mbed_log      0x3fff0d2c  2d fc 12 16 84 3a 56 dc e1 03 fc 98 df 97 79 b7
  1467. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 13 => 676
  1468. mg_ssl_mbed_log      0x3fff0d2c => write record
  1469. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 22, version = [3:3], msglen = 663
  1470. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1471. mg_ssl_mbed_log      0x3fff0d2c message length: 668, out_left: 668
  1472. ssl_socket_send      0x3fff0d2c 668 -> 668
  1473. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 668 (-0xfffffd64)
  1474. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 676 => 13
  1475. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1476. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1477. mg_ssl_mbed_log      0x3fff0d2c <= write certificate
  1478. mg_ssl_mbed_log      0x3fff0d2c client state: 8
  1479. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1480. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1481. mg_ssl_mbed_log      0x3fff0d2c => write client key exchange
  1482. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 13 => 617
  1483. ATCA:3 ECDH get pubkey ok
  1484. mg_ssl_mbed_log      0x3fff0d2c value of 'ECDH: Q(X)' (255 bits) is:
  1485. mg_ssl_mbed_log      0x3fff0d2c  6c 06 07 54 0f 95 11 6a 79 87 ff 75 51 08 7a 95
  1486. mg_ssl_mbed_log      0x3fff0d2c  2a 83 05 70 21 33 ed 82 14 22 3f 96 f6 ee ac 65
  1487. mg_ssl_mbed_log      0x3fff0d2c value of 'ECDH: Q(Y)' (256 bits) is:
  1488. mg_ssl_mbed_log      0x3fff0d2c  97 75 dc 90 3f 5e 9a 11 7d 86 b9 a5 ab 22 6f cf
  1489. mg_ssl_mbed_log      0x3fff0d2c  e4 b5 13 38 53 fc bf 8e 2d 89 ee b4 a8 62 f8 5a
  1490. ATCA:3 ECDH ok
  1491. mg_ssl_mbed_log      0x3fff0d2c value of 'ECDH: z' (256 bits) is:
  1492. mg_ssl_mbed_log      0x3fff0d2c  ab 73 d4 95 00 0f 51 2a 17 98 19 a6 df 43 da a3
  1493. mg_ssl_mbed_log      0x3fff0d2c  13 c1 dc 84 59 f8 9d 9c 71 08 90 26 99 b0 cf 96
  1494. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 617 => 83
  1495. mg_ssl_mbed_log      0x3fff0d2c => write record
  1496. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 22, version = [3:3], msglen = 70
  1497. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1498. mg_ssl_mbed_log      0x3fff0d2c message length: 75, out_left: 75
  1499. ssl_socket_send      0x3fff0d2c 75 -> 75
  1500. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 75 (-0xffffffb5)
  1501. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 83 => 13
  1502. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1503. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1504. mg_ssl_mbed_log      0x3fff0d2c <= write client key exchange
  1505. mg_ssl_mbed_log      0x3fff0d2c client state: 9
  1506. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1507. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1508. mg_ssl_mbed_log      0x3fff0d2c => write certificate verify
  1509. mg_ssl_mbed_log      0x3fff0d2c => derive keys
  1510. mg_ssl_mbed_log      0x3fff0d2c dumping 'premaster secret' (32 bytes)
  1511. mg_ssl_mbed_log      0x3fff0d2c 0000:  ab 73 d4 95 00 0f 51 2a 17 98 19 a6 df 43 da a3  .s....Q*.....C..
  1512. mg_ssl_mbed_log      0x3fff0d2c 0010:  13 c1 dc 84 59 f8 9d 9c 71 08 90 26 99 b0 cf 96  ....Y...q..&....
  1513. mg_ssl_mbed_log      0x3fff0d2c ciphersuite = TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
  1514. mg_ssl_mbed_log      0x3fff0d2c dumping 'master secret' (48 bytes)
  1515. mg_ssl_mbed_log      0x3fff0d2c 0000:  24 13 c6 f1 02 1f 2d ca e4 f1 5a f0 e2 b4 c1 7e  $.....-...Z....~
  1516. mg_ssl_mbed_log      0x3fff0d2c 0010:  8e 27 b5 8a c0 fa db e7 81 07 ba ac 08 1c dc ad  .'..............
  1517. mg_ssl_mbed_log      0x3fff0d2c 0020:  09 ae 09 5a 6b 95 60 b9 17 7f 48 b4 44 c2 5e 37  ...Zk.`...H.D.^7
  1518. mg_ssl_mbed_log      0x3fff0d2c keylen: 16, minlen: 24, ivlen: 12, maclen: 0
  1519. mg_ssl_mbed_log      0x3fff0d2c <= derive keys
  1520. mg_ssl_mbed_log      0x3fff0d2c => calc verify sha256
  1521. mg_ssl_mbed_log      0x3fff0d2c dumping 'calculated verify result' (32 bytes)
  1522. mg_ssl_mbed_log      0x3fff0d2c 0000:  e6 7b 09 c0 44 e6 43 b6 af 39 e2 3a 9d 40 b7 c8  .{..D.C..9.:.@..
  1523. mg_ssl_mbed_log      0x3fff0d2c 0010:  33 b7 dd f9 71 cf 3b 96 f6 3c 89 0c b7 a3 f2 72  3...q.;..<.....r
  1524. mg_ssl_mbed_log      0x3fff0d2c <= calc verify
  1525. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 13 => 21
  1526. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 21 => 621
  1527. ATCA:0 ECDSA sign ok
  1528. mg_ssl_mbed_log      0x3fff0d2c => write record
  1529. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 22, version = [3:3], msglen = 79
  1530. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1531. mg_ssl_mbed_log      0x3fff0d2c message length: 84, out_left: 84
  1532. ssl_socket_send      0x3fff0d2c 84 -> 84
  1533. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 84 (-0xffffffac)
  1534. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 621 => 13
  1535. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1536. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1537. mg_ssl_mbed_log      0x3fff0d2c <= write certificate verify
  1538. mg_ssl_mbed_log      0x3fff0d2c client state: 10
  1539. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1540. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1541. mg_ssl_mbed_log      0x3fff0d2c => write change cipher spec
  1542. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 13 => 14
  1543. mg_ssl_mbed_log      0x3fff0d2c => write record
  1544. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 20, version = [3:3], msglen = 1
  1545. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1546. mg_ssl_mbed_log      0x3fff0d2c message length: 6, out_left: 6
  1547. ssl_socket_send      0x3fff0d2c 6 -> 6
  1548. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 6 (-0xfffffffa)
  1549. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 14 => 13
  1550. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1551. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1552. mg_ssl_mbed_log      0x3fff0d2c <= write change cipher spec
  1553. mg_ssl_mbed_log      0x3fff0d2c client state: 11
  1554. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1555. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1556. mg_ssl_mbed_log      0x3fff0d2c => write finished
  1557. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 13 => 37
  1558. mg_ssl_mbed_log      0x3fff0d2c => calc  finished tls sha256
  1559. mg_ssl_mbed_log      0x3fff0d2c dumping 'calc finished result' (12 bytes)
  1560. mg_ssl_mbed_log      0x3fff0d2c 0000:  9f 4b 94 43 de fe 38 d7 08 8a 66 18              .K.C..8...f.
  1561. mg_ssl_mbed_log      0x3fff0d2c <= calc  finished
  1562. mg_ssl_mbed_log      0x3fff0d2c switching to new transform spec for outbound data
  1563. mg_ssl_mbed_log      0x3fff0d2c => write record
  1564. mg_ssl_mbed_log      0x3fff0d2c => encrypt buf
  1565. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 37 => 61
  1566. mg_ssl_mbed_log      0x3fff0d2c before encrypt: msglen = 24, including 0 bytes of padding
  1567. mg_ssl_mbed_log      0x3fff0d2c <= encrypt buf
  1568. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 22, version = [3:3], msglen = 40
  1569. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1570. mg_ssl_mbed_log      0x3fff0d2c message length: 45, out_left: 45
  1571. ssl_socket_send      0x3fff0d2c 45 -> 45
  1572. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 45 (-0xffffffd3)
  1573. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 61 => 21
  1574. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1575. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1576. mg_ssl_mbed_log      0x3fff0d2c <= write finished
  1577. mg_ssl_mbed_log      0x3fff0d2c client state: 12
  1578. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1579. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1580. mg_ssl_mbed_log      0x3fff0d2c => parse change cipher spec
  1581. mg_ssl_mbed_log      0x3fff0d2c => read record
  1582. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1583. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 2603
  1584. mg_ssl_mbed_log      0x3fff0d2c shrink in_buf 2603 => 13
  1585. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1586. mg_ssl_mbed_log      0x3fff0d2c <= handshake
  1587. mg_ssl_mbed_log      0x3fff0d2c => handshake
  1588. mg_ssl_mbed_log      0x3fff0d2c client state: 12
  1589. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1590. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1591. mg_ssl_mbed_log      0x3fff0d2c => parse change cipher spec
  1592. mg_ssl_mbed_log      0x3fff0d2c => read record
  1593. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1594. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1595. ssl_socket_recv      0x3fff0d2c <- 5
  1596. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1597. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  1598. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1599. mg_ssl_mbed_log      0x3fff0d2c input record: msgtype = 20, version = [3:3], msglen = 1
  1600. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1601. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 6, in_buf_size: 13
  1602. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 13 => 14
  1603. ssl_socket_recv      0x3fff0d2c <- 1
  1604. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 6, in_buf_size: 14
  1605. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 1 (-0xffffffff)
  1606. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1607. mg_ssl_mbed_log      0x3fff0d2c <= read record
  1608. mg_ssl_mbed_log      0x3fff0d2c switching to new transform spec for inbound data
  1609. mg_ssl_mbed_log      0x3fff0d2c <= parse change cipher spec
  1610. mg_ssl_mbed_log      0x3fff0d2c client state: 13
  1611. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1612. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1613. mg_ssl_mbed_log      0x3fff0d2c => parse finished
  1614. mg_ssl_mbed_log      0x3fff0d2c => calc  finished tls sha256
  1615. mg_ssl_mbed_log      0x3fff0d2c dumping 'calc finished result' (12 bytes)
  1616. mg_ssl_mbed_log      0x3fff0d2c 0000:  2f 1b 91 eb f2 26 3f d3 73 92 b8 4b              /....&?.s..K
  1617. mg_ssl_mbed_log      0x3fff0d2c <= calc  finished
  1618. mg_ssl_mbed_log      0x3fff0d2c => read record
  1619. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1620. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 14
  1621. mg_ssl_mbed_log      0x3fff0d2c shrink in_buf 14 => 13
  1622. ssl_socket_recv      0x3fff0d2c <- 5
  1623. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1624. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  1625. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1626. mg_ssl_mbed_log      0x3fff0d2c input record: msgtype = 22, version = [3:3], msglen = 40
  1627. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1628. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 45, in_buf_size: 13
  1629. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 13 => 53
  1630. ssl_socket_recv      0x3fff0d2c <- 40
  1631. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 45, in_buf_size: 53
  1632. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 40 (-0xffffffd8)
  1633. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1634. mg_ssl_mbed_log      0x3fff0d2c => decrypt buf
  1635. mg_ssl_mbed_log      0x3fff0d2c <= decrypt buf
  1636. mg_ssl_mbed_log      0x3fff0d2c handshake message: msglen = 16, type = 20, hslen = 16
  1637. mg_ssl_mbed_log      0x3fff0d2c <= read record
  1638. mg_ssl_mbed_log      0x3fff0d2c <= parse finished
  1639. mg_ssl_mbed_log      0x3fff0d2c client state: 14
  1640. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1641. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1642. mg_ssl_mbed_log      0x3fff0d2c handshake: done
  1643. mg_ssl_mbed_log      0x3fff0d2c client state: 15
  1644. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1645. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1646. mg_ssl_mbed_log      0x3fff0d2c => handshake wrapup
  1647. mg_ssl_mbed_log      0x3fff0d2c => handshake wrapup: final free
  1648. mg_ssl_mbed_log      0x3fff0d2c <= handshake wrapup: final free
  1649. mg_ssl_mbed_log      0x3fff0d2c <= handshake wrapup
  1650. mg_ssl_mbed_log      0x3fff0d2c <= handshake
  1651. mgos_mqtt_ev         MQTT Connect (1)
  1652. mg_ssl_mbed_log      0x3fff0d2c => write
  1653. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 21 => 47
  1654. mg_ssl_mbed_log      0x3fff0d2c => write record
  1655. mg_ssl_mbed_log      0x3fff0d2c => encrypt buf
  1656. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 47 => 71
  1657. mg_ssl_mbed_log      0x3fff0d2c before encrypt: msglen = 34, including 0 bytes of padding
  1658. mg_ssl_mbed_log      0x3fff0d2c <= encrypt buf
  1659. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 23, version = [3:3], msglen = 50
  1660. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1661. mg_ssl_mbed_log      0x3fff0d2c message length: 55, out_left: 55
  1662. ssl_socket_send      0x3fff0d2c 55 -> 55
  1663. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 55 (-0xffffffc9)
  1664. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 71 => 21
  1665. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1666. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1667. mg_ssl_mbed_log      0x3fff0d2c <= write
  1668. mg_ssl_mbed_log      0x3fff0d2c => read
  1669. mg_ssl_mbed_log      0x3fff0d2c => read record
  1670. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1671. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 53
  1672. mg_ssl_mbed_log      0x3fff0d2c shrink in_buf 53 => 13
  1673. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1674. mg_ssl_mbed_log      0x3fff0d2c => read
  1675. mg_ssl_mbed_log      0x3fff0d2c => read record
  1676. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1677. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1678. ssl_socket_recv      0x3fff0d2c <- 5
  1679. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1680. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  1681. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1682. mg_ssl_mbed_log      0x3fff0d2c input record: msgtype = 23, version = [3:3], msglen = 28
  1683. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1684. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 33, in_buf_size: 13
  1685. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 13 => 41
  1686. ssl_socket_recv      0x3fff0d2c <- 28
  1687. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 33, in_buf_size: 41
  1688. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 28 (-0xffffffe4)
  1689. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1690. mg_ssl_mbed_log      0x3fff0d2c => decrypt buf
  1691. mg_ssl_mbed_log      0x3fff0d2c <= decrypt buf
  1692. mg_ssl_mbed_log      0x3fff0d2c <= read record
  1693. mg_ssl_mbed_log      0x3fff0d2c <= read
  1694. mgos_mqtt_ev         MQTT event: 202
  1695. mgos_mqtt_ev         MQTT CONNACK 0
  1696. ev_handler           CONNACK: 0
  1697. sub                  Subscribed to /request
  1698. sub                  Subscribed to /request/1AFE34D4C621
  1699. mgos_mqtt_pub        Publishing to register_device @ 0 (43): [{"chipid":"1AFE34D4C621","dev_type":"WIFI"}]
  1700. mgos_mqtt_ev         Subscribing to '1AFE34D4C621/rpc'
  1701. mgos_mqtt_ev         Subscribing to '1AFE34D4C621/rpc/#'
  1702. mg_ssl_mbed_log      0x3fff0d2c => read
  1703. mg_ssl_mbed_log      0x3fff0d2c => read record
  1704. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1705. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 41
  1706. mg_ssl_mbed_log      0x3fff0d2c shrink in_buf 41 => 13
  1707. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1708. mg_ssl_mbed_log      0x3fff0d2c => write
  1709. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 21 => 174
  1710. mg_ssl_mbed_log      0x3fff0d2c => write record
  1711. mg_ssl_mbed_log      0x3fff0d2c => encrypt buf
  1712. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 174 => 198
  1713. mg_ssl_mbed_log      0x3fff0d2c before encrypt: msglen = 161, including 0 bytes of padding
  1714. mg_ssl_mbed_log      0x3fff0d2c <= encrypt buf
  1715. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 23, version = [3:3], msglen = 177
  1716. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1717. mg_ssl_mbed_log      0x3fff0d2c message length: 182, out_left: 182
  1718. ssl_socket_send      0x3fff0d2c 182 -> 182
  1719. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 182 (-0xffffff4a)
  1720. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 198 => 21
  1721. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1722. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1723. mg_ssl_mbed_log      0x3fff0d2c <= write
  1724. mg_ssl_mbed_log      0x3fff0d2c => read
  1725. mg_ssl_mbed_log      0x3fff0d2c => read record
  1726. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1727. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1728. ssl_socket_recv      0x3fff0d2c <- 5
  1729. mg_ssl_mbed_log      0x3fff0d2c in_left: 0, nb_want: 5, in_buf_size: 13
  1730. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 5 (-0xfffffffb)
  1731. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1732. mg_ssl_mbed_log      0x3fff0d2c input record: msgtype = 21, version = [3:3], msglen = 26
  1733. mg_ssl_mbed_log      0x3fff0d2c => fetch input
  1734. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 31, in_buf_size: 13
  1735. mg_ssl_mbed_log      0x3fff0d2c grow in_buf 13 => 39
  1736. ssl_socket_recv      0x3fff0d2c <- 26
  1737. mg_ssl_mbed_log      0x3fff0d2c in_left: 5, nb_want: 31, in_buf_size: 39
  1738. mg_ssl_mbed_log      0x3fff0d2c ssl->f_recv(_timeout)() returned 26 (-0xffffffe6)
  1739. mg_ssl_mbed_log      0x3fff0d2c <= fetch input
  1740. mg_ssl_mbed_log      0x3fff0d2c => decrypt buf
  1741. mg_ssl_mbed_log      0x3fff0d2c <= decrypt buf
  1742. mg_ssl_mbed_log      0x3fff0d2c got an alert message, type: [1:0]
  1743. mg_ssl_mbed_log      0x3fff0d2c is a close notify message
  1744. mg_ssl_mbed_log      0x3fff0d2c mbedtls_ssl_handle_message_type() returned -30848 (-0x7880)
  1745. mg_ssl_mbed_log      0x3fff0d2c mbedtls_ssl_read_record() returned -30848 (-0x7880)
  1746. mg_ssl_mbed_log      0x3fff0d2c => write close notify
  1747. mg_ssl_mbed_log      0x3fff0d2c => send alert message
  1748. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 21 => 23
  1749. mg_ssl_mbed_log      0x3fff0d2c => write record
  1750. mg_ssl_mbed_log      0x3fff0d2c => encrypt buf
  1751. mg_ssl_mbed_log      0x3fff0d2c grow out_buf 23 => 47
  1752. mg_ssl_mbed_log      0x3fff0d2c before encrypt: msglen = 10, including 0 bytes of padding
  1753. mg_ssl_mbed_log      0x3fff0d2c <= encrypt buf
  1754. mg_ssl_mbed_log      0x3fff0d2c output record: msgtype = 21, version = [3:3], msglen = 26
  1755. mg_ssl_mbed_log      0x3fff0d2c => flush output
  1756. mg_ssl_mbed_log      0x3fff0d2c message length: 31, out_left: 31
  1757. ssl_socket_send      0x3fff0d2c 31 -> 31
  1758. mg_ssl_mbed_log      0x3fff0d2c ssl->f_send() returned 31 (-0xffffffe1)
  1759. mg_ssl_mbed_log      0x3fff0d2c shrink out_buf 47 => 21
  1760. mg_ssl_mbed_log      0x3fff0d2c <= flush output
  1761. mg_ssl_mbed_log      0x3fff0d2c <= write record
  1762. mg_ssl_mbed_log      0x3fff0d2c <= send alert message
  1763. mg_ssl_mbed_log      0x3fff0d2c <= write close notify
  1764. mgos_mqtt_ev         MQTT Disconnect
  1765. mqtt_global_reconnec MQTT connecting after 2144 ms
  1766. mg_ssl_mbed_log      0x3fff0d2c => free
  1767. mg_ssl_mbed_log      0x3fff0d2c <= free
  1768. mqtt_global_connect  MQTT connecting to a2wvu7vrfjdfdx.iot.us-west-2.amazonaws.com:8883
  1769. set_spiffs_errno     aws-iot-c74e641add.crt.pem: res = 1, e = -10002
  1770. set_spiffs_errno     fstat: res = 0, e = -10002
  1771. set_spiffs_errno     fstat: res = 0, e = -10002
  1772. set_spiffs_errno     lseek: res = 0, e = -10002
  1773. set_spiffs_errno     lseek: res = 1024, e = -10002
  1774. set_spiffs_errno     read: res = 117, e = -10002
  1775. set_spiffs_errno     lseek: res = 0, e = -10002
  1776. set_spiffs_errno     read: res = 1024, e = -10002
  1777. set_spiffs_errno     read: res = 117, e = -10002
  1778. set_spiffs_errno     close: res = 0, e = -10002
  1779. set_spiffs_errno     ca-verisign-ecc-g2.crt.pem: res = 1, e = -10002
  1780. set_spiffs_errno     fstat: res = 0, e = -10002
  1781. set_spiffs_errno     fstat: res = 0, e = -10002
  1782. set_spiffs_errno     lseek: res = 0, e = -10002
  1783. set_spiffs_errno     lseek: res = 1024, e = -10002
  1784. set_spiffs_errno     read: res = 566, e = -10002
  1785. set_spiffs_errno     lseek: res = 0, e = -10002
  1786. set_spiffs_errno     read: res = 1024, e = -10002
  1787. set_spiffs_errno     read: res = 566, e = -10002
  1788. set_spiffs_errno     close: res = 0, e = -10002
Add Comment
Please, Sign In to add comment