Hi burakkirazli,
See "Date BEFORE check failed" message above. The -150 error (from wolfssl/wolfcrypt/error-crypt.h) "ASN_BEFORE_DATE_E = -150, /* ASN date error, current date before */".
Your RTC time is not setup properly, so the certificate date check is failing. Here are the possible solutions:
1. Setup your RTC correctly via the XTIME macros. Example here: https://github.com/wolfSSL/wolfssl/blob … ngs.h#L449
2. Override the date error in the verify callback (see this example: https://github.com/wolfSSL/wolfssl/blob … t.h#L1721)
3. Disable all certificate date checking by disabling NO_ASN_TIME. Do note that this will allow expired certificates to be used.
Thanks,
David Garske, wolfSSL