What FIPS 140 is
FIPS 140 is a US (and Canadian) government standard for cryptographic modules: the hardware, software or firmware that does the cryptography. Labs test a module, and NIST’s CMVP (Cryptographic Module Validation Program) lists it as validated and gives it a certificate number.
Important distinctions:
| It is | It is not |
|---|---|
| A test of a specific module and version | A rating of a whole product or company |
| A requirement for US federal use, and common in finance, healthcare, defense | A guarantee of no vulnerabilities |
| About correct algorithms, key handling and self-tests | A guarantee that you configured it securely |
“FIPS compliant”, “FIPS capable” and “FIPS validated” are very different, and vendors use them loosely:
- Compliant or based on means “we used algorithms from the standard”. Anyone can say it, and nobody checked.
- Capable or ready means the product could be put in a validated configuration, but may not be at the moment.
- Validated means an accredited lab tested a specific module, and NIST issued a certificate. Only this usually satisfies an auditor.
Ask for the certificate number and check the module’s status and security policy document on NIST’s site. The security policy lists exactly which algorithms and modes are covered, and what settings keep the module in its approved state.
140-2 vs 140-3
| FIPS 140-2 | FIPS 140-3 | |
|---|---|---|
| Published | 2001 | 2019 (effective 2020) |
| Based on | Its own text | ISO/IEC 19790 and 24759 |
| New validations | Closed: no new submissions | Yes |
| Existing certificates | Moved to the Historical list on September 21, 2026: still listed, but not for new federal purchases | Five-year validity |
| Notable change | Stricter self-tests, more on software/firmware integrity, side-channel testing, and some new requirements for entropy |
Both versions define security levels:
| Level | What it adds | Example |
|---|---|---|
| 1 | Approved algorithms and basic production-grade design; no physical protection required | A software library |
| 2 | Tamper evidence (seals, coatings) and role-based authentication | Many HSMs, tokens |
| 3 | Tamper resistance and response (zeroize on attack) and identity-based authentication | High-end HSMs |
| 4 | Protection against environmental attacks as well | Rare |
Higher is not automatically better for you; it costs more and can limit features. Match the level to your risk and your compliance requirement. CAs and key custody typically need Level 2 or 3 for the key store: Level 2 makes tampering visible, Level 3 makes the device destroy its keys if someone tries. Software-only products can reach Level 1 at most, which is why a validated HSM is often how a CA key gets to Level 3.
What it means in practice
A validated module behaves differently from an ordinary library in six ways:
- Approved algorithms only. In FIPS mode a module refuses weak or non-approved algorithms. Generally approved: AES, SHA-2, SHA-3, RSA (≥2048), ECDSA/ECDH on NIST curves (P-256, P-384, P-521), HMAC, HKDF, PBKDF2 (with conditions), ML-KEM and ML-DSA (as validations arrive). Not approved: MD5, SHA-1 for signatures, 3DES (retired), RC4, and, in many modules, Ed25519 and ChaCha20.
- Self-tests at startup and before key use. The module runs known-answer tests (encrypt a fixed input and compare with the expected result). If one fails, the module stops rather than risk producing wrong crypto.
- Roles and authentication. For example Crypto Officer vs User, so that administering the module and using its keys are separate powers.
- Key management rules: how keys are generated, stored, and zeroized (overwritten so they cannot be recovered).
- Approved random number generator (DRBG with a validated entropy source). The first page explained why this is the foundation.
- A “boundary”. Only code inside the validated boundary is covered. If you call a non-validated library, you are outside. A product can use a validated module for TLS and a non-validated one for everything else, and still be only partly covered.
FIPS mode in OpenSSL
OpenSSL itself is not “FIPS”. Since 3.0, its FIPS provider is a separate, optional module. A provider is a plug-in that supplies the algorithms, so in FIPS mode OpenSSL uses only the FIPS provider’s algorithms and the others are unavailable. Validated versions have their own CMVP certificates and you must use that exact provider build. Check what is loaded:
$ openssl list -providers
Providers:
default
name: OpenSSL Default Provider
version: 4.1.0
status: active
In the output above only the default provider is active, so this
installation is not in FIPS mode. In a FIPS-configured system you would
see fips and a base provider instead. Enabling it needs an
openssl.cnf section and an installed fips.so that matches a validated
build, produced with openssl fipsinstall:
$ openssl list -providers -provider fips
list: unable to load provider fips
Hint: use -provider-path option or OPENSSL_MODULES environment variable.
(That is the real error on a machine where no FIPS module is installed, which is true of most laptops. Do not “fix” it by installing random files; use your vendor’s FIPS-validated distribution.)
Many operating systems ship a FIPS-validated OpenSSL and a switch for it:
RHEL (fips-mode-setup --enable), Ubuntu Pro (fips kernel and packages),
Windows (a policy setting).
FIPS and keys, certificates and SSH
- A CA’s signing key should live in a FIPS-validated HSM or KMS (protecting keys). In AWS, Google and Azure, check that you are using the endpoint or tier with a validated module.
- Choose approved algorithms for your certificates: ECDSA P-256/P-384 or RSA 3072, SHA-256 or SHA-384. Ed25519 is excellent but may not be allowed by your auditors’ FIPS scope yet.
- TLS: allow TLS 1.2 and 1.3 with approved ciphers (AES-GCM).
- SSH: configure
sshdwith approved ciphers, MACs and key exchange; use ECDSA keys or RSA ≥ 3072 if you are in scope. - PKCS#12 and key wrapping: older, non-approved encryption (RC2, 3DES) is rejected in FIPS mode; PBES2 with AES is fine.
Related standards you will hear
| Standard | What it is |
|---|---|
| FIPS 186-5 | Digital signatures (RSA, ECDSA, EdDSA) |
| FIPS 197 | AES |
| FIPS 180-4 / 202 | SHA-2 / SHA-3 |
| FIPS 203 / 204 / 205 | ML-KEM, ML-DSA, SLH-DSA (post-quantum) |
| NIST SP 800-57 | Key management guidance: lifetimes, strengths |
| NIST SP 800-131A | Which algorithms are allowed and until when |
| Common Criteria | A different evaluation, of products against a protection profile |
| PCI HSM, eIDAS, WebTrust for CAs | Sector requirements that often cite FIPS 140 |
A short customer-conversation script
“Is the product FIPS compliant?” is not a question you can answer. Ask:
- Which module performs cryptography (name and version)?
- What is its CMVP certificate number, and is it Active?
- At what security level, and is it 140-2 or 140-3?
- Is the product configured to run in the approved mode, and is this documented?
- Which algorithms do we use, and are they all in the approved set?
About BastionXP
BastionXP is a cloud-native private PKI CA and device identity management platform that eliminates passwords and shared secrets by issuing hardware-attested certificates to mobile devices and laptops. Secure access to your Wi-Fi, VPN, and SaaS applications in your enterprise network. Replace legacy SCEP with automated ACME Device Attestation. No shared secrets. Zero credential theft. Learn more about BastionXP →