Skip to content

.include directive with relative path should print a warning when OPENSSL_CONF_INCLUDE env. var. is not defined #26041

Description

@leorge

Hi, try the following commands.

$ touch a.cnf
$ mkdir sub1 && cd $_
$ echo ".include ../a.cnf" > b.cnf
$ mkdir sub2 && cd $_
$ echo ".include ../b.cnf" > c.cnf
$ openssl ca -config ./c.cnf
      (Error messages like the next)
$ openssl ca -config ../b.cnf
Using configuration from ../b.cnf
variable lookup failed for ca::default_ca
4007E9D4017F0000:error:80000002:system library:process_include:No such file or directory:../crypto/conf/conf_def.c:822:calling stat(../a.cnf)
4007E9D4017F0000:error:0700006C:configuration file routines:NCONF_get_string:no value:../crypto/conf/conf_lib.c:315:group=ca name=default_ca

../a.cnf can't be found.

Version: OpenSSL 3.0.15 3 Sep 2024 (Library: OpenSSL 3.0.15 3 Sep 2024)

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlog fixThe issue was closed as part of the backlog reduction initiative.branch: masterApplies to master branchhelp wantedtriaged: featureThe issue/pr requests/adds a feature

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions