summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-06-29 13:31:57 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-06-29 13:34:25 +0100
commita3b8cd242a7c9549fddda2f35774dc3d2b4ec13c (patch)
tree93bd2b7c3c73ad49f9a6fbacaca559f4883322ee /apps
parentd1cc95f7810c131f2a14483a68cf590a4cba8b57 (diff)
Show errors on CSR verification failure.
If CSR verify fails in ca utility print out error messages. Otherwise some errors give misleading output: for example if the key size exceeds the library limit. PR#2875 (cherry picked from commit a30bdb55d1361b9926eef8127debfc2e1bb8c484)
Diffstat (limited to 'apps')
-rw-r--r--apps/ca.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 3b72d8668c..5c985434a0 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -1628,12 +1628,14 @@ static int certify(X509 **xret, char *infile, EVP_PKEY *pkey, X509 *x509,
{
ok=0;
BIO_printf(bio_err,"Signature verification problems....\n");
+ ERR_print_errors(bio_err);
goto err;
}
if (i == 0)
{
ok=0;
BIO_printf(bio_err,"Signature did not match the certificate request\n");
+ ERR_print_errors(bio_err);
goto err;
}
else