I try ssl connection and every thing looks good, but when I tested correct certification I saw that Wiced doesn't check the hostname form public serwer certificate with lookup domain.
In wiced_tls_init_simple_context we set peer_cn e.g "mydomain.com"
context->context.peer_cn = peer_cn;
In wiced_tcp_enable_tls context pointer is assigned to socket.
socket->tls_context = context;
And until this moment everything looks great but next, in wiced_tcp_connect() when we socket->tls_context != NULL runs wiced_tcp_start_tls() next wiced_tcp_start_tls_with_ciphers() and first line we have