# openssl-fipsinstall(1) - man - phpman

[OPENSSL-FIPSINSTALL(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-FIPSINSTALL/1SSL/markdown)                      OpenSSL                     [OPENSSL-FIPSINSTALL(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-FIPSINSTALL/1SSL/markdown)



## NAME
       openssl-fipsinstall - perform FIPS configuration installation

## SYNOPSIS
       **openssl** **fipsinstall** [**-help**] [**-in** _configfilename_] [**-out** _configfilename_] [**-module**
       _modulefilename_] [**-provider**___**name** _providername_] [**-section**___**name** _sectionname_] [**-verify**]
       [**-mac**___**name** _macname_] [**-macopt** _nm_:_v_] [**-noout**] [**-quiet**] [**-no**___**conditional**___**errors**]
       [**-no**___**security**___**checks**] [**-self**___**test**___**onload**] [**-corrupt**___**desc** _selftest_description_] [**-corrupt**___**type**
       _selftest_type_] [**-config** _parent_config_]

## DESCRIPTION
       This command is used to generate a FIPS module configuration file.  This configuration file
       can be used each time a FIPS module is loaded in order to pass data to the FIPS module self
       tests. The FIPS module always verifies its MAC, but optionally only needs to run the KAT's
       once, at installation.

       The generated configuration file consists of:

       - A MAC of the FIPS module file.
       - A test status indicator.
           This indicates if the Known Answer Self Tests (KAT's) have successfully run.

       - A MAC of the status indicator.
       - A control for conditional self tests errors.
           By default if a continuous test (e.g a key pair test) fails then the FIPS module will
           enter an error state, and no services or cryptographic algorithms will be able to be
           accessed after this point.  The default value of '1' will cause the fips module error
           state to be entered.  If the value is '0' then the module error state will not be
           entered.  Regardless of whether the error state is entered or not, the current operation
           (e.g. key generation) will return an error. The user is responsible for retrying the
           operation if the module error state is not entered.

       - A control to indicate whether run-time security checks are done.
           This indicates if run-time checks related to enforcement of security parameters such as
           minimum security strength of keys and approved curve names are used.  The default value
           of '1' will perform the checks.  If the value is '0' the checks are not performed and
           FIPS compliance must be done by procedures documented in the relevant Security Policy.

       This file is described in **fips**___**[config**(5)](https://www.chedong.com/phpMan.php/man/config/5/markdown).

## OPTIONS
### -help
           Print a usage message.

### -module
           Filename of the FIPS module to perform an integrity check on.  The path provided in the
           filename is used to load the module when it is activated, and this overrides the
           environment variable **OPENSSL**___**MODULES**.

### -out
           Filename to output the configuration data to; the default is standard output.

### -in
           Input filename to load configuration data from.  Must be used if the **-verify** option is
           specified.

### -verify
           Verify that the input configuration file contains the correct information.

### -provider
           Name of the provider inside the configuration file.  The default value is "fips".

### -section
           Name of the section inside the configuration file.  The default value is "fips_sect".

### -mac
           Specifies the name of a supported MAC algorithm which will be used.  The MAC mechanisms
           that are available will depend on the options used when building OpenSSL.  To see the
           list of supported MAC's use the command "openssl list -mac-algorithms".  The default is
           **HMAC**.

### -macopt
           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 this command
           are:

           **key**:_string_
               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.  If no key is provided,
               the default that was specified when OpenSSL was configured is used.

           **hexkey**:_string_
               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.  If no key is provided, the default that was specified when
               OpenSSL was configured is used.

           **digest**:_string_
               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".
               The default digest is SHA-256.

### -noout
           Disable logging of the self tests.

### -no
           Configure the module to not enter an error state if a conditional self test fails as
           described above.

### -no
           Configure the module to not perform run-time security checks as described above.

### -self
           Do not write the two fields related to the "test status indicator" and "MAC status
           indicator" to the output configuration file. Without these fields the self tests KATS
           will run each time the module is loaded. This option could be used for cross compiling,
           since the self tests need to run at least once on each target machine. Once the self
           tests have run on the target machine the user could possibly then add the 2 fields into
           the configuration using some other mechanism.

### -quiet
           Do not output pass/fail messages. Implies **-noout**.

### -corrupt -corrupt
           The corrupt options can be used to test failure of one or more self tests by name.
           Either option or both may be used to select the tests to corrupt.  Refer to the entries
           for **st-desc** and **st-type** in **OSSL**___**[PROVIDER-FIPS**(7)](https://www.chedong.com/phpMan.php/man/PROVIDER-FIPS/7/markdown) for values that can be used.

### -config
           Test that a FIPS provider can be loaded from the specified configuration file.  A
           previous call to this application needs to generate the extra configuration data that is
           included by the base "parent_config" configuration file.  See [**config**(5)](https://www.chedong.com/phpMan.php/man/config/5/markdown) for further
           information on how to set up a provider section.  All other options are ignored if
           '-config' is used.

## NOTES
       Self tests results are logged by default if the options **-quiet** and **-noout** are not specified,
       or if either of the options **-corrupt**___**desc** or **-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 **-corrupt**___**desc** and
### -corrupt
       default provider when generating the fips configuration file.

## EXAMPLES
       Calculate the mac of a FIPS module _fips.so_ and run a FIPS self test for the module, and save
       the _fips.cnf_ configuration file:

        openssl fipsinstall -module ./fips.so -out fips.cnf -provider_name fips

       Verify that the configuration file _fips.cnf_ contains the correct info:

        openssl fipsinstall -module ./fips.so -in fips.cnf  -provider_name fips -verify

       Corrupt any self tests which have the description "SHA1":

        openssl fipsinstall -module ./fips.so -out fips.cnf -provider_name fips \
                -corrupt_desc 'SHA1'

       Validate that the fips module can be loaded from a base configuration file:

        export OPENSSL_CONF_INCLUDE=<path of configuration files>
        export OPENSSL_MODULES=<provider-path>
        openssl fipsinstall -config' 'default.cnf'

## SEE ALSO
       [**config**(5)](https://www.chedong.com/phpMan.php/man/config/5/markdown), **fips**___**[config**(5)](https://www.chedong.com/phpMan.php/man/config/5/markdown), **OSSL**___**[PROVIDER-FIPS**(7)](https://www.chedong.com/phpMan.php/man/PROVIDER-FIPS/7/markdown), **EVP**___**[MAC**(3)](https://www.chedong.com/phpMan.php/man/MAC/3/markdown)

## COPYRIGHT
       Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.

       Licensed under the Apache License 2.0 (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>>.



3.0.2                                        2026-04-07                    [OPENSSL-FIPSINSTALL(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-FIPSINSTALL/1SSL/markdown)
