I have Ubuntu 20.04 Server with FIPS Kernel and Package enabled. The problem is some of our application need specific version of openssl which is not compatible with the openssl provided by FIPS packages.
Thus, I try to remove the FIPS Kernel and Packages by doing:
sudo ua disable fips fips-updates
After that, I do the following to remove the FIPS Kernel:
- Set the boot to use Ubuntu, with
Linux 5.4.0-100-generic
kernel as the default kernel on /etc/default/grub
- Reboot the server
- Confirm that the kernel is on
Linux 5.4.0-100-generic
and not FIPS Kernel,
- Remove the FIPS kernel with the official method https://discourse.ubuntu.com/t/ubuntu-advantage-disabling-fips-manually/20738
- Reboot the server
- Now my server is on
Linux 5.4.0-100-generic
Kernel
But the problem is, I saw that there is still some packages with FIPS package:
$ sudo dpkg --list | grep fips
ic fips-initramfs-generic 0.0.15+generic1 amd64 FIPS 140-2 kernel tests
ii libgcrypt20:amd64 1.8.5-5ubuntu1.fips.1.5 amd64 LGPL Crypto library - runtime library
ii libgcrypt20-hmac:amd64 1.8.5-5ubuntu1.fips.1.5 amd64 FIPS HMAC integrity check files for libgcrypt20 library.
ii libssl1.1:amd64 1.1.1f-1ubuntu2.fips.7.2 amd64 Secure Sockets Layer toolkit - shared libraries
ii libssl1.1-hmac:amd64 1.1.1f-1ubuntu2.fips.7.2 amd64 Secure Sockets Layer toolkit - FIPS HMAC integrity check
rc linux-image-5.4.0-1037-fips 5.4.0-1037.43 amd64 Signed kernel image fips
rc linux-modules-5.4.0-1037-fips 5.4.0-1037.43 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ic linux-modules-extra-5.4.0-1037-fips 5.4.0-1037.43 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ii openssh-client 1:8.2p1-4ubuntu0.fips.0.2.1 amd64 secure shell (SSH) client, for secure access to remote machines
ii openssh-server 1:8.2p1-4ubuntu0.fips.0.2.1 amd64 secure shell (SSH) server, for secure access from remote machines
ii openssh-sftp-server 1:8.2p1-4ubuntu0.fips.0.2.1 amd64 secure shell (SSH) sftp server module, for SFTP access from remote machines
ii openssl 1.1.1f-1ubuntu2.fips.7.2 amd64 Secure Sockets Layer toolkit - cryptographic utility
rc ubuntu-fips 1.2.4+updates1 amd64 Install and configure linux-fips kernel and user space modules
While my UA Status is like this:
$ sudo ua status
SERVICE ENTITLED STATUS DESCRIPTION
cc-eal yes n/a Common Criteria EAL2 Provisioning Packages
cis yes disabled Security compliance and audit tools
esm-infra yes enabled UA Infra: Extended Security Maintenance (ESM)
fips yes n/a NIST-certified core packages
fips-updates yes disabled NIST-certified core packages with priority security updates
livepatch yes enabled Canonical Livepatch service
NOTICES
FIPS kernel is running in a disabled state.
To manually remove fips kernel: https://discourse.ubuntu.com/t/20738
Enable services with: ua enable <service>
How to remove all the FIPS packages and use the default Ubuntu provide?
Thank you