From: Rich Salz Date: Tue, 7 Feb 2017 16:33:21 +0000 (-0500) Subject: Centralize documentation about config file location X-Git-Tag: OpenSSL_1_1_0e~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=31041c40d45c9a2a2f59c5de64feebeff35455d9;p=oweals%2Fopenssl.git Centralize documentation about config file location Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/2569) (cherry picked from commit e9681f8314c64c6802b11997c471bd763de38c8c) --- diff --git a/doc/apps/CA.pl.pod b/doc/apps/CA.pl.pod index 727cce12c7..a7f3970cb0 100644 --- a/doc/apps/CA.pl.pod +++ b/doc/apps/CA.pl.pod @@ -191,18 +191,12 @@ be wrong. In this case the command: perl -S CA.pl can be used and the B environment variable changed to point to -the correct path of the configuration file "openssl.cnf". +the correct path of the configuration file. The script is intended as a simple front end for the B program for use by a beginner. Its behaviour isn't always what is wanted. For more control over the behaviour of the certificate commands call the B command directly. -=head1 ENVIRONMENT VARIABLES - -The variable B if defined allows an alternative configuration -file location to be specified, it should contain the full path to the -configuration file, not just its directory. - =head1 SEE ALSO L, L, L, L, diff --git a/doc/apps/ca.pod b/doc/apps/ca.pod index 5d4cfda125..c09db826ec 100644 --- a/doc/apps/ca.pod +++ b/doc/apps/ca.pod @@ -77,6 +77,8 @@ this prints extra details about the operations being performed. =item B<-config filename> specifies the configuration file to use. +Optional; for a description of the default value, +see L. =item B<-name section> @@ -633,11 +635,6 @@ The values below reflect the default values. ./demoCA/certs - certificate output file ./demoCA/.rnd - CA random seed information -=head1 ENVIRONMENT VARIABLES - -B reflects the location of master configuration file it can -be overridden by the B<-config> command line option. - =head1 RESTRICTIONS The text database index file is a critical part of the process and diff --git a/doc/apps/openssl.pod b/doc/apps/openssl.pod index a7e65ff70d..da07cd5caf 100644 --- a/doc/apps/openssl.pod +++ b/doc/apps/openssl.pod @@ -40,6 +40,15 @@ The B program provides a rich variety of commands (I in the SYNOPSIS above), each of which often has a wealth of options and arguments (I and I in the SYNOPSIS). +Many commands use an external configuration file for some or all of their +arguments and have a B<-config> option to specify that file. +The environment variable B can be used to specify +the location of the file. +If the environment variable is not specified, then the file is named +B in the default certificate storage area, whose value +depends on the configuration flags specified when the OpenSSL +was built. + The list parameters B, B, and B output a list (one entry per line) of the names of all standard commands, message digest commands, or cipher commands, diff --git a/doc/apps/req.pod b/doc/apps/req.pod index 8ba04aedba..83b5704bd9 100644 --- a/doc/apps/req.pod +++ b/doc/apps/req.pod @@ -204,9 +204,9 @@ GOST R 34.11-94 (B<-md_gost94>). =item B<-config filename> -this allows an alternative configuration file to be specified, -this overrides the compile time filename or any specified in -the B environment variable. +this allows an alternative configuration file to be specified. +Optional; for a description of the default value, +see L. =item B<-subj arg> @@ -623,12 +623,6 @@ then the B is missing and the encoding is technically invalid (but it is tolerated). See the description of the command line option B<-asn1-kludge> for more information. -=head1 ENVIRONMENT VARIABLES - -The variable B if defined allows an alternative configuration -file location to be specified, it will be overridden by the B<-config> command -line switch if it is present. - =head1 BUGS OpenSSL's handling of T61Strings (aka TeletexStrings) is broken: it effectively diff --git a/doc/apps/ts.pod b/doc/apps/ts.pod index 02b2adaa2f..d807394adb 100644 --- a/doc/apps/ts.pod +++ b/doc/apps/ts.pod @@ -139,9 +139,9 @@ MS-Windows, B<,> for VMS and B<:> for all other platforms. (Optional) =item B<-config> configfile -The configuration file to use, this option overrides the -B environment variable. Only the OID section -of the config file is used with the B<-query> command. (Optional) +The configuration file to use. +Optional; for a description of the default value, +see L. =item B<-data> file_to_hash @@ -216,9 +216,10 @@ otherwise it is a time stamp token (ContentInfo). =item B<-config> configfile -The configuration file to use, this option overrides the -B environment variable. See B for configurable variables. (Optional) +The configuration file to use. +Optional; for a description of the default value, +see L. +See B for configurable variables. =item B<-section> tsa_section @@ -386,8 +387,8 @@ verification. See L. =head1 CONFIGURATION FILE OPTIONS -The B<-query> and B<-reply> commands make use of a configuration file -defined by the B environment variable. See L +The B<-query> and B<-reply> commands make use of a configuration file. +See L for a general description of the syntax of the config file. The B<-query> command uses only the symbolic OID names section and it can work without it. However, the B<-reply> command needs the @@ -505,11 +506,6 @@ included. Default is no. (Optional) =back -=head1 ENVIRONMENT VARIABLES - -B contains the path of the configuration file and can be -overridden by the B<-config> command line option. - =head1 EXAMPLES All the examples below presume that B is set to a proper @@ -608,6 +604,8 @@ You could also look at the 'test' directory for more examples. =head1 BUGS +=for comment foreign manuals: procmail(1), perl(1) + If you find any bugs or you have suggestions please write to Zoltan Glozik . Known issues: