Document that the openssl fipsinstall self test callback may not be used.
authorslontis <shane.lontis@oracle.com>
Tue, 31 Aug 2021 00:59:20 +0000 (10:59 +1000)
committerTomas Mraz <tomas@openssl.org>
Mon, 20 Sep 2021 07:32:07 +0000 (09:32 +0200)
Fixes #16260

If the user autoloads a fips module from a config file, then it will run the self tests early (before the self test callback is set),
and they may not get triggered again during the fipsinstall process.
In order for this to happen there must already be a valid fips config file.
As the main purpose of the application is to generate the fips config file, this case has just been documented.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16475)

doc/man1/openssl-fipsinstall.pod.in

index d79e237dba2787d67ec8b0f67f97236ac72e5034..97e2ae910c170b086c12a88794fbab6b69fbd763 100644 (file)
@@ -197,6 +197,18 @@ All other options are ignored if '-config' is used.
 
 =back
 
+=head1 NOTES
+
+Self tests results are logged by default if the options B<-quiet> and B<-noout>
+are not specified, or if either of the options B<-corrupt_desc> or
+B<-corrupt_type> are used.
+If the base configuration file is set up to autoload the fips module, then the
+fips module will be loaded and self tested BEFORE the fipsinstall application
+has a chance to set up its own self test callback. As a result of this the self
+test output and the options B<-corrupt_desc> and B<-corrupt_type> will be ignored.
+For normal usage the base configuration file should use the default provider
+when generating the fips configuration file.
+
 =head1 EXAMPLES
 
 Calculate the mac of a FIPS module F<fips.so> and run a FIPS self test