cancel
Showing results for 
Search instead for 
Did you mean: 

https-client issue

bhargav142
Associate

Hello,

I’m currently working with the Nucleo-767ZI board and attempting to connect it to an HTTPS client to send raw sensor data to my Google Trust-based database. However, I’ve been facing issues during the TLS handshake, and neither read nor write operations are functioning correctly.

The setup involves using DHCP along with LWIP, mbedTLS, RTC, and SNTP. Despite checking various possible causes—including checksum errors and other protocol-related configurations—the problem persists.

I’ve already generated and included the required CA certificates (including both intermediate and root certificates), but the issue remains unresolved.

Could you please guide me on any possible solutions or processes that might help me achieve the desired outcome?

Best regards,
Thumula Bhargav

2 REPLIES 2
Andrew Neil
Super User

@bhargav142 wrote:

Hello,

Nucleo-767ZI board and attempting to connect it to an HTTPS client


So the Nucleo is the Server?

What is the Client?

 


@bhargav142 wrote:

facing issues during the TLS handshake


What issues, exactly:

  • HTTP errors?
  • lower-layer errors?

Have you used Wireshark (or similar) to see what's going on?

Have you enabled LwIP diagnostics?

https://community.st.com/t5/others-stm32-mcus-related/lan8742a-ethernet-phy-not-responding-after-software-hardware/m-p/804525/highlight/true#M6759

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
bhargav142
Associate

Have you enabled LwIP diagnostics? 
yess sir! I had enabled also the debug msg print also happening like dhcp based ip address in putty

but i was getting like this

Building HTTP PUT request...
Seeding RNG...
RNG seeded successfully.
Loading SSL defaults...
SSL defaults loaded.
Parsing CA certificate...
mbedtls_x509_crt_parse failed: -0x0
here i was getting stuck...  
actually using this board i was send some raw data to firebase (realtime-database)to check the communication btw this both board & firebase.

if i was doing wrong procedure please help & guide me with some solution and process to achive my task 

 best regards,

Thumula bhargav