Wiznet / RP2040-HAT-C

Ethernet Example for RP2040
64 stars 35 forks source link

SSL - Connect failed -13 #11

Closed TDERL closed 2 years ago

TDERL commented 2 years ago

Hi, Hoping someone can help. Trying to run the TCP Client over SSL example. Run through the steps as described. I get my openSSL to the point where it displays:

Using default temp DH parameters ACCEPT

Then I reset my RP2040 Pico board and get:

==================================================================================================== W5100S network configuration : static

MAC : nn:nn:nn:nn:nn:nn IP : 192.168.n.nnn Subnet Mask : 255.255.255.0 Gateway : 192.168.n.n DNS : 8.8.8.8 ==================================================================================================== Socket descriptor 0 Supported ciphersuite lists TLS-DHE-RSA-WITH-AES-256-CBC-SHA256 TLS-DHE-RSA-WITH-AES-128-GCM-SHA256 TLS-DHE-RSA-WITH-AES-128-CBC-SHA256 TLS-RSA-WITH-AES-256-CBC-SHA256 TLS-RSA-WITH-AES-128-GCM-SHA256 TLS-RSA-WITH-AES-128-CBC-SHA256 Connect failed -13 I can see that error -13 is a timeout, but I can work out why or how to debug it. Any pointers would be very gratefully accepted! Many thanks
GiungKim commented 2 years ago

Hello @TDERL,

'Connect failed -13' is a return value that occurs as a timeout because it cannot connect to the SSL/TLS server.

Did you set the SSL/TLS server IP correctly?

'g_ssl_target_ip' is the setting for the SSL/TLS server IP.

TDERL commented 2 years ago

Hi GiungKim,

As far as I can tell, yes. It's not easy to spot if I am doing one of the steps slightly wrong as the instructions are not complete and I am not very fluent with CLI's. I tried 'g_ssl_target_ip' but it is not recognised as a command, so am not sure how to use it or what I am doing wrong.

For now, I have moved onto other things as can't afford to waste time on things that don't work (which has been my general experience with most things RP2040 related). Perhaps I'll give it another try if/when I get a spare moment.