5 openssl-fipsinstall - perform FIPS configuration installation
11 [B<-in> I<configfilename>]
12 [B<-out> I<configfilename>]
13 [B<-module> I<modulefilename>]
14 [B<-provider_name> I<providername>]
15 [B<-section_name> I<sectionname>]
17 [B<-mac_name> I<macname>]
18 [B<-macopt> I<nm>:I<v>]
20 B<openssl> I<fipsinstall> [B<...>]
24 This utility is used to generate a FIPS module configuration file.
25 The generated configuration file consists of:
29 =item - A mac of the FIPS module file.
31 =item - A status indicator that indicates if the known answer Self Tests (KAT's)
32 have successfully run.
36 This configuration file can be used each time a FIPS module is loaded
37 in order to pass data to the FIPS modules self tests. The FIPS module always
38 verifies the modules MAC, but only needs to run the KATS once during install.
46 Print a usage message.
48 =item B<-module> I<filename>
50 Filename of a fips module to perform an integrity check on.
52 =item B<-out> I<configfilename>
54 Filename to output the configuration data to, or standard output by default.
56 =item B<-in> I<configfilename>
58 Input filename to load configuration data from. Used with the '-verify' option.
59 Standard input is used if the filename is '-'.
63 Verify that the input configuration file contains the correct information
65 =item B<-provider_name> I<providername>
67 Name of the provider inside the configuration file.
69 =item B<-section_name> I<sectionname>
71 Name of the section inside the configuration file.
73 =item B<-mac_name> I<name>
75 Specifies the name of a supported MAC algorithm which will be used.
76 To see the list of supported MAC's use the command I<list -mac-algorithms>.
77 The default is "HMAC".
79 =item B<-macopt> I<nm>:I<v>
81 Passes options to the MAC algorithm.
82 A comprehensive list of controls can be found in the EVP_MAC implementation
84 Common control strings used for fipsinstall are:
90 Specifies the MAC key as an alphanumeric string (use if the key contains
91 printable characters only).
92 The string length must conform to any restrictions of the MAC algorithm.
93 A key must be specified for every MAC algorithm.
95 =item B<hexkey:string>
97 Specifies the MAC key in hexadecimal form (two hex digits per byte).
98 The key length must conform to any restrictions of the MAC algorithm.
99 A key must be specified for every MAC algorithm.
101 =item B<digest:string>
103 Used by HMAC as an alphanumeric string (use if the key contains printable
105 The string length must conform to any restrictions of the MAC algorithm.
106 To see the list of supported digests, use the command I<list -digest-commands>.
114 Calculate the mac of a FIPS module 'fips.so' and run a FIPS self test
115 for the module, and save the fips.conf configuration file:
117 openssl fipsinstall -module ./fips.so -out fips.conf -provider_name fips \
118 -section_name fipsinstall -mac_name HMAC -macopt digest:SHA256 \
119 -macopt hexkey:000102030405060708090A0B0C0D0E0F10111213
121 Verify that the configuration file 'fips.conf' contains the correct info:
123 openssl fipsinstall -module ./fips.so -in fips.conf -provider_name fips \
124 -section_name fips_install -mac_name HMAC -macopt digest:SHA256 \
125 -macopt hexkey:000102030405060708090A0B0C0D0E0F10111213 -verify
129 The MAC mechanisms that are available will depend on the options
130 used when building OpenSSL.
131 The B<list -mac-algorithms> command can be used to list them.
140 Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
142 Licensed under the OpenSSL license (the "License"). You may not use
143 this file except in compliance with the License. You can obtain a copy
144 in the file LICENSE in the source distribution or at
145 L<https://www.openssl.org/source/license.html>.