Skip to content

Commit

Permalink
mbedtls: add error message for cert validity starting in the future
Browse files Browse the repository at this point in the history
Closes #4552
  • Loading branch information
bgK authored and bagder committed Nov 2, 2019
1 parent 9c49824 commit 9910d6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/vtls/mbedtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,9 @@ mbed_connect_step2(struct connectdata *conn,
else if(ret & MBEDTLS_X509_BADCERT_NOT_TRUSTED)
failf(data, "Cert verify failed: BADCERT_NOT_TRUSTED");

else if(ret & MBEDTLS_X509_BADCERT_FUTURE)
failf(data, "Cert verify failed: BADCERT_FUTURE");

return CURLE_PEER_FAILED_VERIFICATION;
}

Expand Down

0 comments on commit 9910d6b

Please sign in to comment.