openssl-fipsinstall - perform FIPS configuration installation
openssl fipsinstall [-help] [-in configfilename] [-out configfilename] [-module modulefilename] [-provider_name providername] [-section_name sectionname] [-verify] [-mac_name macname] [-macopt nm:v] [-noout] [-corrupt_desc selftest_description] [-corrupt_type selftest_type]
This command is used to generate a FIPS module configuration file. The generated configuration file consists of:
This configuration file can be used each time a FIPS module is loaded in order to pass data to the FIPS modules self tests. The FIPS module always verifies the modules MAC, but only needs to run the KATS once during install.
Print a usage message.
Filename of a fips module to perform an integrity check on.
Filename to output the configuration data to, or standard output by default.
Input filename to load configuration data from. Used with the '-verify' option. Standard input is used if the filename is '-'.
Verify that the input configuration file contains the correct information
Name of the provider inside the configuration file.
Name of the section inside the configuration file.
Specifies the name of a supported MAC algorithm which will be used. To see the list of supported MAC's use the command openssl list -mac-algorithms
. The default is HMAC.
Passes options to the MAC algorithm. A comprehensive list of controls can be found in the EVP_MAC implementation documentation. Common control strings used for fipsinstall are:
Specifies the MAC key as an alphanumeric string (use if the key contains printable characters only). The string length must conform to any restrictions of the MAC algorithm. A key must be specified for every MAC algorithm.
Specifies the MAC key in hexadecimal form (two hex digits per byte). The key length must conform to any restrictions of the MAC algorithm. A key must be specified for every MAC algorithm.
Used by HMAC as an alphanumeric string (use if the key contains printable characters only). The string length must conform to any restrictions of the MAC algorithm. To see the list of supported digests, use the command openssl list -digest-commands
.
Disable logging of the self tests.
The corrupt options can be used to test failure of one or more self test(s) by name. Either option or both may be used to select the self test(s) to corrupt. Refer to the entries for "st-desc" and "st-type" in EXAMPLES
Calculate the mac of a FIPS module fips.so and run a FIPS self test for the module, and save the fips.conf configuration file: Verify that the configuration file fips.conf contains the correct info: Corrupt any self tests which have the description 'SHA1': The MAC mechanisms that are available will depend on the options used when building OpenSSL. The command OSSL_PROVIDER-FIPS(7), COPYRIGHT
Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html. openssl fipsinstall -module ./fips.so -out fips.conf -provider_name fips \
-section_name fipsinstall -mac_name HMAC -macopt digest:SHA256 \
-macopt hexkey:000102030405060708090A0B0C0D0E0F10111213
openssl fipsinstall -module ./fips.so -in fips.conf -provider_name fips \
-section_name fips_install -mac_name HMAC -macopt digest:SHA256 \
-macopt hexkey:000102030405060708090A0B0C0D0E0F10111213 -verify
openssl fipsinstall -module ./fips.so -out fips.conf -provider_name fips \
-section_name fipsinstall -mac_name HMAC -macopt digest:SHA256 \
-macopt hexkey:000102030405060708090A0B0C0D0E0F10111213 \
-corrupt_desc', 'SHA1'
NOTES
openssl list -mac-algorithms
command can be used to list them.SEE ALSO