Skip to content

Commit bca8b0f

Browse files
author
Mika Leppänen
committed
Disabled check for certificate valid from field
1 parent 2a5ae7c commit bca8b0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,10 @@ static int tls_sec_prot_lib_x509_crt_verify(void *ctx, mbedtls_x509_crt *crt, in
487487
if (crt->sig_pk != MBEDTLS_PK_ECDSA) {
488488
tr_error("Invalid signature pk algorithm");
489489
}
490+
if (*flags & MBEDTLS_X509_BADCERT_FUTURE) {
491+
tr_info("Certificate time future");
492+
*flags &= ~MBEDTLS_X509_BADCERT_FUTURE;
493+
}
490494

491495
// Verify client/server certificate of the chain
492496
if (certificate_depth == 0) {

0 commit comments

Comments
 (0)