xref: /openssl/doc/man5/fips_config.pod (revision 5540855b)
1=pod
2
3=head1 NAME
4
5fips_config - OpenSSL FIPS configuration
6
7=head1 DESCRIPTION
8
9A separate configuration file, using the OpenSSL L<config(5)> syntax,
10is used to hold information about the FIPS module. This includes a digest
11of the shared library file, and status about the self-testing.
12This data is used automatically by the module itself for two
13purposes:
14
15=over 4
16
17=item - Run the startup FIPS self-test known answer tests (KATS).
18
19This is normally done once, at installation time, but may also be set up to
20run each time the module is used.
21
22=item - Verify the module's checksum.
23
24This is done each time the module is used.
25
26=back
27
28This file is generated by the L<openssl-fipsinstall(1)> program, and
29used internally by the FIPS module during its initialization.
30
31The following options are supported. They should all appear in a section
32whose name is identified by the B<fips> option in the B<providers>
33section, as described in L<config(5)/Provider Configuration Module>.
34
35=over 4
36
37=item B<activate>
38
39If present, the module is activated. The value assigned to this name is not
40significant.
41
42=item B<install-version>
43
44A version number for the fips install process. Should be 1.
45
46=item B<conditional-errors>
47
48The FIPS module normally enters an internal error mode if any self test fails.
49Once this error mode is active, no services or cryptographic algorithms are
50accessible from this point on.
51Continuous tests are a subset of the self tests (e.g., a key pair test during key
52generation, or the CRNG output test).
53Setting this value to C<0> allows the error mode to not be triggered if any
54continuous test fails. The default value of C<1> will trigger the error mode.
55Regardless of the value, the operation (e.g., key generation) that called the
56continuous test will return an error code if its continuous test fails. The
57operation may then be retried if the error mode has not been triggered.
58
59=item B<security-checks>
60
61This indicates if run-time checks related to enforcement of security parameters
62such as minimum security strength of keys and approved curve names are used.
63A value of '1' will perform the checks, otherwise if the value is '0' the checks
64are not performed and FIPS compliance must be done by procedures documented in
65the relevant Security Policy.
66
67=item B<module-mac>
68
69The calculated MAC of the FIPS provider file.
70
71=item B<install-status>
72
73An indicator that the self-tests were successfully run.
74This should only be written after the module has
75successfully passed its self tests during installation.
76If this field is not present, then the self tests will run when the module
77loads.
78
79=item B<install-mac>
80
81A MAC of the value of the B<install-status> option, to prevent accidental
82changes to that value.
83It is written-to at the same time as B<install-status> is updated.
84
85=back
86
87For example:
88
89 [fips_sect]
90 activate = 1
91 install-version = 1
92 conditional-errors = 1
93 security-checks = 1
94 module-mac = 41:D0:FA:C2:5D:41:75:CD:7D:C3:90:55:6F:A4:DC
95 install-mac = FE:10:13:5A:D3:B4:C7:82:1B:1E:17:4C:AC:84:0C
96 install-status = INSTALL_SELF_TEST_KATS_RUN
97
98=head1 NOTES
99
100When using the FIPS provider, it is recommended that the
101B<config_diagnostics> option is enabled to prevent accidental use of
102non-FIPS validated algorithms via broken or mistaken configuration.
103See L<config(5)>.
104
105=head1 SEE ALSO
106
107L<config(5)>
108L<openssl-fipsinstall(1)>
109
110=head1 COPYRIGHT
111
112Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
113
114Licensed under the Apache License 2.0 (the "License").  You may not use
115this file except in compliance with the License.  You can obtain a copy
116in the file LICENSE in the source distribution or at
117L<https://www.openssl.org/source/license.html>.
118
119=cut
120