Arm Mbed OS support forum

Bug report + help in understanding errors


I am trying to use the ssl_client1 sample program to access my website I am seeing the following error:

. Verifying peer X.509 certificate… failed
! The certificate is not correctly signed by the trusted CA

Is this a fatal error? The program continues after that point, but I then get:

HTTP/1.1 400 Bad Request
Date: Thu, 05 Aug 2021 15:37:14 GMT
Server: Apache
Accept-Ranges: bytes
Connection: close
Content-Type: text/html

Should this ‘just work’, or am I missing something? The site can be accessed fine through a web browser. I can provide a full log at debug level 3 if that would help. I tried this with version 3.0.0 and 2.25.0 (note that 2.25.0 on Windows crashes if debug level is set to 3).