MicroOcpp icon indicating copy to clipboard operation
MicroOcpp copied to clipboard

esp-tls issue

Open vishutux opened this issue 3 years ago • 1 comments

Thanks for creating such a wonderful program,

I am using Using examples/esp-tls and My CA certificate is fine and

Using Signature Algorithm: sha256WithRSAEncryption Public-Key: (2028 bit)

Getting below error , despite setting my CA certificate in

const char ENDPOINT_CA_CERT[] PROGMEM

Error coming on connection is below,

[E][WiFiClientSecure.cpp:133] connect(): start_ssl_client: -9984 [AO] info (.pio/libdeps/esp32dev/ArduinoOcpp/src/ArduinoOcpp/Core/OcppSocket.cpp:31): Disconnected [E][ssl_client.cpp:36] _handle_error(): [start_ssl_client():216]: (-9984) X509 - Certificate verification failed, e.g. CRL, CA or signature check failed

vishutux avatar Sep 02 '22 11:09 vishutux

Hi, thank you for the feedback!

The TLS library complains that the credentials are not right yet. Can you check if:

  • The time on the ESP is set
  • The subject name in the certificate is the same as the hostname in your URL?

matth-x avatar Sep 10 '22 08:09 matth-x

Closing this due to inactivity

matth-x avatar Aug 25 '23 10:08 matth-x