Skip to content

SSL connection issues in (since?) platform version 3.1.0 #516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
maxgerhardt opened this issue Mar 22, 2021 · 2 comments
Closed

SSL connection issues in (since?) platform version 3.1.0 #516

maxgerhardt opened this issue Mar 22, 2021 · 2 comments

Comments

@maxgerhardt
Copy link
Contributor

Per 3 user reports from https://community.platformio.org/t/wificlientsecure-doesnt-work-in-espressif-32-v3-1-0/19877, establishing SSL connections may be broken in platform code or Arduino core that 3.1.x uses.

I then get an errorcode -9984 (invalid certificate or signature), thus the problem is somewhere in mbedtls_ssl_handshake()

I am attempting to get more details on this and a reproduction, but since 3 users independently reported it I figured I should track it here.

@chb60
Copy link

chb60 commented Apr 4, 2021

Hello, I have the same problem with my app, it works well with platformio 3.0.0 but make ssl error with upper version 3.1.x and 3.2.0 with this error [E][WiFiClientSecure.cpp:133] connect(): start_ssl_client: -1
All other code working well except this.
Thanks for your help

@maxgerhardt
Copy link
Contributor Author

maxgerhardt commented Apr 4, 2021

In the linked topic it was found out that this is purely dependent on the Arduino-ESP32 core version. Core 1.0.4 is good but after that it's bad (1.0.5 and 1.0.6), and core 1.0.4 is used in Espressif32 platform 3.0.0, 1.0.5 in 3.1.x and 1.0.6 in 3.2.x.

Or rather, as can be seen in espressif/arduino-esp32#4992, "bad" in the sense that you now have to call an extra function .setInsecure() to get the old behavior again.

Not an issue in PlatformIO, hence closing.

Addendum: If you do not want to adapt your code, you can use the older Arduino core either by reverting the whole platform version using

platform = [email protected]

or just reverting the core package version

platform_packages =
   framework-arduinoespressif32@~3.10004.0

in the platformio.ini.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants