Show errors on CSR verification failure.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 29 Jun 2014 12:31:57 +0000 (13:31 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 29 Jun 2014 12:33:44 +0000 (13:33 +0100)
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

apps/ca.c

index bc5778df1ce70e1c314cdb6bf4aa65559f4de5ba..89f0de35683008c83463753b3ba70e4161b8ad67 100644 (file)
--- 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