← Back to section · Software & Developer Tools
The Shape of the FIPS Provider: Why the Validation Boundary Must Be a Standalone Module
In OpenSSL 3, the vehicle of FIPS compliance is a separate fips provider module, not a compile-time switch. This article explains its installation, integrity checking, and configuration — and what it cannot guarantee.
FIPS 140 is the part of the U.S. Federal Information Processing Standards that sets security requirements for cryptographic modules, and only modules validated against it may claim compliance in regulated scenarios. In the OpenSSL world, the shape of FIPS changed completely with the 3.0 architectural overhaul: in the 1.0.x era it was a special “FIPS Object Module” plus a compile-time switch; in 3.x it became a standalone module under the Provider architecture — the fips provider. Understanding this difference in shape is the prerequisite for understanding all FIPS configuration.
Why the Validation Boundary Must Sit on a Module
The object of cryptographic module validation is a whole with a clearly defined boundary: which code, which algorithms, and which self-test procedures were submitted for validation and granted a certificate. The Provider architecture expresses this cleanly: package the validated set of implementations into a single module file, and the validation boundary is that file’s boundary. The default provider may contain implementations with the same names and functions, but they are outside the boundary and do not count as validated — the single most important distinction in the FIPS context.
Consequently, “this machine has OpenSSL 3 installed” and “this machine is using validated implementations” are two entirely different propositions. The first is about the version; the second is about which provider is actually loaded at runtime and whether the application restricts algorithm fetches to fips.
Installation: fipsinstall and Integrity Checking
Installing the fips provider module involves one more ritual than copying an ordinary file: you run the dedicated installation command (openssl fipsinstall), which computes an integrity check value over the module file, generates the module-specific configuration file (usually named fipsmodule.cnf), and writes the check value and the module’s self-test parameters into it. From then on, every time the module is loaded it first performs an integrity self-check against this configuration: if the file has been modified or the configuration does not match, the module refuses to work.
The practical implication is that the fips module cannot be casually copied around like an ordinary library file. The binary, the module configuration, and the installation run that generated it are bound together; when a distribution’s FIPS package is installed through a package manager, this step is performed by the package’s install scripts, while manual deployment must run it and keep the generated configuration. When troubleshooting “the fips module fails to load,” the first things to check are whether this module configuration exists and whether its paths line up.
Configuration: Making Applications Really Use Only Validated Implementations
Making an application run in FIPS mode usually takes two layers working together. The configuration layer: activate the fips provider in the main configuration file — its configuration section must specify the module configuration file’s path (the module and config items); for system-wide enforcement, you can also pair it with the base provider (which supplies only encoding/decoding and no algorithms) and not activate default, cutting off non-validated algorithm sources at the root.
The application layer: if an application uses property queries when fetching algorithms, it can require fips=yes, locking a single call precisely to a validated implementation; older applications that specify no properties depend entirely on the configuration layer’s activation state. The two approaches suit different cases: the former is precise but requires application cooperation; the latter is transparent but coarser-grained. Either way, the verification method is the same: use openssl list under the same configuration to inspect the actual load state of algorithms and providers, and confirm that the default provider has not been quietly activated. The most dangerous state is “believing FIPS is on while default and fips are both present, and which one the application fetched is left to default ordering” — exactly the situation the list commands exist to rule out.
The Granularity of Validation: Version, Platform, and Self-Tests
One more easily overlooked fact: FIPS validation has granularity. A validation certificate corresponds to a specific version of the module, tested on specific operating-system and hardware platforms; switch to a different major version or a different platform and, strictly speaking, you fall outside that certificate’s coverage. OpenSSL’s fips provider validation is no exception — it corresponds to the module version and test-platform combination that was submitted. Distribution vendors sometimes submit their own builds for separate validation for exactly this reason: a compliance review must align two lines of text — “the version and platform on the certificate” and “the version and platform actually installed on the machine” — not the blanket sentence “OpenSSL has FIPS.”
At runtime there is a companion mechanism: self-tests. On load, besides the integrity check, the module runs power-on self-tests — known-answer tests confirming that core algorithms work correctly; a module that fails its self-tests enters an error state and refuses to serve, and the application layer sees an explicit load failure rather than limping on while sick. Operationally, note that a self-test failure usually points to file corruption, tampered configuration, or a module/configuration mismatch; it is itself a signal worth alerting on, not an ordinary error to be retried away.
In audit scenarios there is one more practical question: how the evidence is handed over. Reviewers usually want to see three things — the module’s validation certificate information (findable in the CMVP’s official list by module name and version), the module version and platform actually installed on the machine, and a measured record of the runtime load state (the output of the list commands). Only when all three line up is the FIPS link closed; submitting a statement of “we use OpenSSL” alone will not pass any serious audit. Archiving these three materials at deployment time is far easier than reconstructing them when an audit looms.
What FIPS Cannot Guarantee
Finally, the boundary. FIPS validation concerns the module itself: algorithm implementations are correct, and the self-test procedures are complete. It does not guarantee that the application manages keys well, that protocol configuration has no weak points, or that the rest of the deployment environment is compliant. Treating “we use the FIPS module” as the whole of “the system is secure and compliant” exaggerates what validation means. Its precise position is this: in regulated scenarios, the cryptographic-implementation link can present evidence verified by a third party — no more than that, but that link is often exactly the focus of an audit.
Tags: OpenSSLFIPSComplianceProvider