ESP32 + W5500 HTTPS Request Issue

Home Forums esp32 ESP32 + W5500 HTTPS Request Issue

Viewing 4 reply threads
  • Author
    Posts
    • #31612
      Muhammad
      Participant

        I am facing issue in making Https request to my site.

        it gives following message

        Begin Ethernet
        DHCP OK!
        Local IP : 192.168.0.104
        Subnet Mask : 255.255.255.0
        Gateway IP : 192.168.0.1
        DNS Server : 192.168.0.1
        Ethernet Successfully Initialized
        (SSLClient)(SSL_WARN)(m_run_until): Terminating because the ssl engine closed
        (SSLClient)(SSL_ERROR)(m_start_ssl): Failed to initlalize the SSL layer
        (SSLClient)(SSL_ERROR)(m_print_br_error): Incoming protocol or record version is unsupported.
        connection failed
        (SSLClient)(SSL_ERROR)(available): Cannot operate on a closed SSL connection.
        (SSLClient)(SSL_ERROR)(m_print_br_error): Incoming protocol or record version is unsupported.

        disconnecting.
        Received 0 bytes in 0.0104, rate = 0.00 kbytes/second

      • #31617
        Renzo Mischianti
        Keymaster

          Hi,
          I think that, as described in the error, the problem is that the version of SSL is not supported by SSLClient; try to check the server security settings.
          Bye Renzo

        • #31619
          Muhammad
          Participant

            Sometimes, It works and sometime i get different error.

            Begin Ethernet
            DHCP OK!
            Local IP : 192.168.10.154
            Subnet Mask : 255.255.255.0
            Gateway IP : 192.168.10.100
            DNS Server : 192.168.10.1
            Ethernet Successfully Initialized
            (SSLClient)(SSL_ERROR)(connect): Failed to connect using m_client. Are you connected to the internet?
            connection failed
            ESP32-D0WD-V3
            (SSLClient)(SSL_ERROR)(available): Cannot operate if the write error is not reset:
            (SSLClient)(SSL_ERROR)(m_print_ssl_error): SSL_CLIENT_CONNECT_FAIL
            (SSLClient)(SSL_ERROR)(connected): Not connected because write error is set
            (SSLClient)(SSL_ERROR)(m_print_ssl_error): SSL_CLIENT_CONNECT_FAIL

            disconnecting.
            (SSLClient)(SSL_ERROR)(connected): Not connected because write error is set
            (SSLClient)(SSL_ERROR)(m_print_ssl_error): SSL_CLIENT_CONNECT_FAIL
            Received 0 bytes in 0.0310, rate = 0.00 kbytes/second

          • #31620
            Muhammad
            Participant

              Although I am connected to the internet.

            • #31648
              Renzo Mischianti
              Keymaster

                Hi,
                sorry for the late response

                The error (SSLClient)(SSL_ERROR)(m_print_br_error): Incoming protocol or record version is unsupported. indicates that the SSL/TLS version the server expects is not supported by your client. Check if your server enforces a specific SSL/TLS version (like TLS 1.2 or 1.3). Ensure that your ESP32 or SSLClient library supports the required version.
                Try to modify the SSL settings on your server to allow older versions like TLS 1.1 or ensure the client can handle TLS 1.2+.
                Bye Renzo

            Viewing 4 reply threads
            • You must be logged in to reply to this topic.
            Exit mobile version