otherwise the WiFiClientSecure::connect() method fails to validate the SSL connection and returns the following error if debug messages are enabled or silently fails otherwise:
BSSL:Couldn't connect. Error = 'Chain could not be linked to a trust anchor.'
With the latest updates, we dropped support of axTLS in favor of BearSSL.
This also should fix your issues. Please check it out and let us know.
Thanks for your contribution!
Description
My use case is using a self-signed certificate and its fingerprint for validation.
This PR makes the following code use the fingerprint and work as expected:
otherwise the
WiFiClientSecure::connect()
method fails to validate the SSL connection and returns the following error if debug messages are enabled or silently fails otherwise:A workaround, without applying this PR is:
Issues Resolved
Using the fingerprint fails to establish an SSL connection.