IBM Cloud Docs
Habilitar FIPS 140-2

Habilitar FIPS 140-2

FIPS (Federal Information Processing Standards) es un conjunto de estándares para especificar requisitos de seguridad para hardware y software criptográfico. Se creó en 1994, y en el 2001 se publicó una actualización de este estándar, conocida como FIPS 140-2.

Los algoritmos de seguridad FIPS 140-2 se pueden habilitar si necesita asegurarse de que el módulo de seguridad de hardware (HSM) es compatible y compatible con agencias y gobiernos que operan bajo FIPS. Para ello:

  1. En primer lugar, confirme que la modalidad FIPS está inhabilitada, utilizando el mandato hsm show.

    	[jdoe1] lunash:>hsm show
    
    	Appliance Details:
    	==================
    	Software Version:   6.2.2-5
    
    	HSM Details:
    	============
    	HSM Label:                          jpmonge
    	Serial #:                           534071
    	Firmware:                           6.10.9
    	HSM Model:                          K6 Base
    	Authentication Method:              Password
    	HSM Admin login status:             Not Logged In
    	HSM Admin login attempts left:      3 before HSM zeroization!
    	RPV Initialized:                    No
    	Audit Role Initialized:             No
    	Remote Login Initialized:           No
    	Manually Zeroized:                  No
    
    	[OUTPUT OMITTED]
    
    	FIPS 140-2 Operation:
    	=====================
    	The HSM is NOT in FIPS 140-2 approved operation mode.
    
    	HSM Storage Information:
    	========================
    	Maximum HSM Storage Space (Bytes):   2097152
    	Space In Use (Bytes):                1468005
    	Free Space Left (Bytes):             629147
    	Command Result : 0 (Success)
    

    The output states The HSM is NOT in FIPS 140-2 approved operation mode, confirming the device is not running FIPS.

  2. Revise las políticas antes de habilitar la modalidad FIPS con el mandato hsm showpolicies.

    	[jdoe1] lunash:>hsm showpolicies
    
    	HSM Label:   jpmonge
    	Serial #:    534071
    	Firmware:    6.10.9
    
    	[OUTPUT OMITTED]
    
    	The following policies are set due to current configuration of this HSM and cannot be altered directly by the user.
    
    	Description                              Value
    	===========                              =====
    
    	PIN-based authentication                  True
    
    	The following policies describe the current configuration of this HSM and may be changed by the HSM Administrator.
    
    	Changing policies marked "destructive" will zeroize (erase completely) the entire HSM.
    
    	Description                             Value      Code      Destructive
    	===========                             =====      ====      ===========
    	Allow masking                            On         6            Yes
    	Allow cloning                            On         7            Yes
    	Allow non-FIPS algorithms                On         12           Yes
    	SO can reset partition PIN               On         15           Yes
    	Allow network replication                On         16           No
    	Allow Remote Authentication              On         20           Yes
    	Force user PIN change after set/reset    Off        21           No
    	Allow offboard storage                   On         22           Yes
    	Allow Acceleration                       On         29           Yes
    
    	Command Result : 0 (Success)
    

    Esta salida muestra que la política 12 (Allow non-FIPS algorithms) está establecida en On, lo que significa que los algoritmos no conformes con FIPS están permitidos para las operaciones en el HSM.

  3. Inicie la sesión como administrador/SOM de HSM utilizando la contraseña que ha especificado durante la inicialización.

    	[jdoe1] lunash:>hsm login
    
    	Please enter the HSM Administrators' password:
    	> ********
    
    	'hsm login' successful.
    
    	Command Result : 0 (Success)
    
  4. Habilite la modalidad FIPS 140-2.

    Para habilitar la modalidad FIPS, debe modificar la política que se revisa en el paso dos de este procedimiento, (Allow non-FIPS algorithms):

    Este procedimiento borra las particiones existentes en el HSM. If you already created partitions and objects, make sure to review the partition contents and configurations in order to recreate them when the new partitions are created.

    Use the hsm changepolicy command to disable policy 12 and only allow the usage of FIPS algorithms:

    	[jdoe1] lunash:>hsm changepolicy -policy 12 -value 0
    
    	CAUTION: Are you sure you wish to change the destructive policy named:
    
    	Allow non-FIPS algorithms
    
    	Changing this policy will result in erasing all partitions on the HSM! (HSM Admin, Domain, and M of N (where applicable) will not be modified.
    
    	Type 'proceed' to zeroize your HSM and change the policy, or 'quit' to quit now.
    
    	> proceed
    
    	'hsm changePolicy' successful.
    
    	Policy Allow non-FIPS algorithms is now set to value: 0
    
    	Command Result : 0 (Success)
    
  5. Confirme que la modalidad FIPS está ahora habilitada de nuevo utilizando el mandato hsm show.

    	[jdoe1] lunash:>hsm show
    
    	Appliance Details:
    	==================
    
    	Software Version:                6.2.2-5
    
    	HSM Details:
    	============
    
    	HSM Label:                          jpmonge
    	Serial #:                           534071
    	Firmware:                           6.10.9
    	HSM Model:                          K6 Base
    	Authentication Method:              Password
    	HSM Admin login status:             Not Logged In
    	HSM Admin login attempts left:      3 before HSM zeroization!
    	RPV Initialized:                    No
    	Audit Role Initialized:             No
    	Remote Login Initialized:           No
    	Manually Zeroized:                  No
    
    	Partitions created on HSM:
    	==============================
    	Partition:            534071009, Name: partition1
    	Number of partitions allowed:        10
    	Number of partitions created:        1
    
    	FIPS 140-2 Operation:
    	=====================
    	The HSM is in FIPS 140-2 approved operation mode.
    
    	HSM Storage Information:
    	========================
    	Maximum HSM Storage Space (Bytes):   2097152
    	Space In Use (Bytes):                209715
    	Free Space Left (Bytes):             1887437
    
    	Command Result : 0 (Success)
    

    El mandato hsm showpolicies muestra que el dispositivo utiliza la modalidad FIPS 140-2 en la política (código) 12 y refleja la aplicación de los algoritmos FIPS 140-2:

    	[jdoe1] lunash:>hsm showpolicies
    
    	HSM Label:   jpmonge
    	Serial #:    534071
    	Firmware:    6.10.9
    
    	[OUTPUT OMITTED]
    
    	The following policies are set due to current 	configuration of this HSM and cannot be altered directly by the user.
    
    	Description                              Value
    	===========                              =====
    	PIN-based authentication                 True
    
    	The following policies describe the current configuration of this HSM and may be changed by the HSM Administrator. Changing policies marked "destructive" will zeroize (erase completely) the entire HSM.
    
    	Description                             Value        Code      Destructive
    	===========                             =====        ====      ===========
    
    	Allow masking                            On           6         Yes
    	Allow cloning                            On           7         Yes
    	Allow non-FIPS algorithms                Off          12        Yes
    	SO can reset partition PIN               On           15        Yes
    	Allow network replication                On           16        No
    	Allow Remote Authentication              On           20        Yes
    	Force user PIN change after set/reset    Off          21        No
    	Allow offboard storage                   On           22        Yes
    	Allow Acceleration                       On           29        Yes
    
    	Command Result : 0 (Success)