Skip to main content
Skip table of contents

Put Linux/CentOS into FIPS Mode

Be very careful when making the changes outlined in this section. If you enter any values incorrectly, it could prevent your DX from booting up. If you make any mistakes when entering values, you may need to reinstall your DX.

For more details on configuring FIPS on RHEL, see https://www.dogtagpki.org/wiki/Configuring_FIPS_on_RHEL.

Configuring FIPS Mode

  1. Go to /etc/default/grub and edit the file by adding the following:
    fips=1
    boot=value
  2. Install the following packages:

    CODE
    $ yum -y install prelink dracut-fips
  3. Disable prelink:

    CODE
    $ cat /etc/sysconfig/prelink | grep PRELINKING
    
    PRELINKING=no
    
    $ prelink -u -a
  4. Recreate the initramfs file:

    CODE
    $ dracut -f
  5. Identify the partition:

    CODE
    $ df /boot
    Filesystem     1K-blocks   Used Available Use% Mounted on
    /dev/vda1        1038336 147424    890912  15% /boot
  6. Identify the universally unique identifier (UUID) of the partition:

    CODE
    $ blkid /dev/vda1
    /dev/vda1: UUID="21f4da90-4055-47e4-8971-763691191f14" TYPE="xfs"
  7. Edit the /etc/default/grub file to add fips=1 and boot=value, as indicated in the command below:

    CODE
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL="serial console"
    GRUB_SERIAL_COMMAND="serial --unit=1 --speed=19200"
    GRUB_CMDLINE_LINUX="fips=1 boot=UUID=21f4da90-4055-47e4-8971-763691191f14 crashkernel=auto rd.lvm.lv=rhel_nocp11/root rd.lvm.lv=rhel_nocp11/swap console=ttyS1,19200"
    GRUB_DISABLE_RECOVERY="true"
  8. Regenerate grub.cfg:

    CODE
    $ grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-3.10.0-655.el7.x86_64
    Found initrd image: /boot/initramfs-3.10.0-655.el7.x86_64.img
    Found linux image: /boot/vmlinuz-0-rescue-e9f58f1897434fada2858923988fd2ca
    Found initrd image: /boot/initramfs-0-rescue-e9f58f1897434fada2858923988fd2ca.img
    Done
  9. Reboot the system:

    CODE
    $ reboot
  10. Verify that the system is running in FIPS mode:

    CODE
    $ sysctl crypto.fips_enabled
    crypto.fips_enabled = 1
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.