Auto Handshake certificate ethernet

The code i wrote work with wifi successfuly with out any problem
But this code sends data over tcp in plain text mode & it dosent encrypt it
Nginx error shows this
...
We have checked the data on server side :
1.The data transmited from WiFiClientSecure were not readable & were encrypted . As a result our request is transmited to the server & the server answeres with success
2.the data transmited from WiFiClient(eth) is plain text mode & readable & not encrypted .
As a result nginx return error 400 & request is not received