The setup is the same as previously; code works fine on native Linux, but as soon as it is brought over to ESP32, I get this:
Both FireFox and curl results in the same error. For the record, here is the curl output:mbedtls_ssl_handshake returned -29056: SSL - Verification of the message MAC failed
Running the https_server example does not exhibit this behavior and as such I've been trying to analyze its code to determine what I'm doing differently that would matter when run on the ESP32. Unfortunately, I can't see any such differences.curl -k -vv https://192.168.10.94:8443
* Expire in 0 ms for 6 (transfer 0x55b53ec094f0)
* Trying 192.168.10.94...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x55b53ec094f0)
* Connected to 192.168.10.94 (192.168.10.94) port 8443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS alert, bad record mac (532):
* error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac
* Closing connection 0
curl: (35) error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac
If you have any input/experience with this problem, please share your knowledge