curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: MbedTLS problem

From: Daniel Stenberg via curl-library <>
Date: Wed, 6 Jan 2021 15:39:11 +0100 (CET)

On Wed, 6 Jan 2021, Thomas Hua via curl-library wrote:

> I have some issues with the libcurl. I'm trying to integrate the libcurl in
> my application. It's currently working fine with the protocol HTTP but when
> I try to do a request with HTTPS I have this :
> Trying
> * Connected to ( port 443 (#0)
> * mbedTLS: Connecting to
> * mbedTLS: ssl_init failed

That is the mbedtls_ssl_setup() function returning an error:

I don't think this is a curl problem. You should probably ask the mbedtls
people what makes it do this and how you can fix it.

In general, I advice *against* using mbedTLS because of its lack of support
and that it doesn't keep up with modern TLS standards (like TLS 1.3). There
are better TLS choices available.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2021-01-06