diff options
Diffstat (limited to 'apps/verify.c')
-rw-r--r-- | apps/verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/verify.c b/apps/verify.c index dae5ba8455..16b25c9ef0 100644 --- a/apps/verify.c +++ b/apps/verify.c @@ -281,7 +281,7 @@ static int check(X509_STORE *ctx, char *file, if (crls) X509_STORE_CTX_set0_crls(csc, crls); i = X509_verify_cert(csc); - if (i > 0) { + if (i > 0 && X509_STORE_CTX_get_error(csc) == X509_V_OK) { printf("%s: OK\n", (file == NULL) ? "stdin" : file); ret = 1; if (show_chain) { |