In "req" exit immediately if configuration file is needed and it can't
be loaded instead of giving the misleading: "unable to find 'distinguised_name' in config" error message.
This commit is contained in:
parent
5dd87981bf
commit
00dd8f6d6e
1 changed files with 7 additions and 4 deletions
11
apps/req.c
11
apps/req.c
|
@ -567,13 +567,16 @@ bad:
|
|||
else
|
||||
{
|
||||
req_conf=config;
|
||||
if( verbose )
|
||||
BIO_printf(bio_err,"Using configuration from %s\n",
|
||||
default_config_file);
|
||||
|
||||
if (req_conf == NULL)
|
||||
{
|
||||
BIO_printf(bio_err,"Unable to load config info\n");
|
||||
BIO_printf(bio_err,"Unable to load config info from %s\n", default_config_file);
|
||||
if (newreq)
|
||||
goto end;
|
||||
}
|
||||
else if( verbose )
|
||||
BIO_printf(bio_err,"Using configuration from %s\n",
|
||||
default_config_file);
|
||||
}
|
||||
|
||||
if (req_conf != NULL)
|
||||
|
|
Loading…
Reference in a new issue