Page MenuHomeVyOS Platform

Add configuration mode CLI to enable FIPS-compatible OpenSSL modules
Closed, ResolvedPublicFEATURE REQUEST

Description

Summary
Add configuration mode CLI to enable FIPS-compatible OpenSSL modules.
Proposed CLI:

set system option fips

In the backend, it should install FIPS modules:

sudo openssl fipsinstall \
  -module /usr/lib/x86_64-linux-gnu/ossl-modules/fips.so \
  -out /usr/lib/ssl/fipsmodule.cnf

It should render OpenSSL config:

vyos@r14:~$ sudo sed -i 's|^# \[default_sect\]|[default_sect]\nactivate = 1|' /etc/ssl/openssl.cnf
vyos@r14:~$ grep -n "default_sect" /etc/ssl/openssl.cnf
58:default = default_sect
71:[default_sect]
vyos@r14:~$ 
vyos@r14:~$ 
vyos@r14:~$ openssl list -providers
Providers:
  default
    name: OpenSSL Default Provider
    version: 3.1.2
    status: active
  fips
    name: OpenSSL FIPS Provider
    version: 3.1.2
    status: active
vyos@r14:~$

It MUST disable the default providers. Implementation relies on the T8508

For simple tests:

# Must work (FIPS-approved)
echo test | openssl dgst -sha256

# Must FAIL (non-FIPS)
echo test | openssl dgst -md5

# Must FAIL (non-FIPS)
openssl enc -des3 -k test -in /dev/null

# Check available ciphers - no CHACHA, no RC4, no DES
openssl list -cipher-algorithms | grep -iE "chacha|rc4|des|md5"

https://docs.openssl.org/master/man7/fips_module/#making-all-applications-use-the-fips-module-by-default

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

Viacheslav triaged this task as Normal priority.Apr 17 2026, 2:04 PM

PR https://github.com/vyos/vyos-1x/pull/5139

set system option fips 
commit

check:

vyos@r14# openssl list -providers
Providers:
  fips
    name: OpenSSL FIPS Provider
    version: 3.1.2
    status: active
[edit]
vyos@r14#
Viacheslav changed the task status from Open to In progress.Apr 20 2026, 3:29 PM
Viacheslav moved this task from Need Triage to Completed on the VyOS Rolling board.