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
This commit is contained in:
parent
7ae6a4b659
commit
a30bdb55d1
@ -1628,12 +1628,14 @@ static int certify(X509 **xret, char *infile, EVP_PKEY *pkey, X509 *x509,
|
|||||||
{
|
{
|
||||||
ok=0;
|
ok=0;
|
||||||
BIO_printf(bio_err,"Signature verification problems....\n");
|
BIO_printf(bio_err,"Signature verification problems....\n");
|
||||||
|
ERR_print_errors(bio_err);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
ok=0;
|
ok=0;
|
||||||
BIO_printf(bio_err,"Signature did not match the certificate request\n");
|
BIO_printf(bio_err,"Signature did not match the certificate request\n");
|
||||||
|
ERR_print_errors(bio_err);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user