FIPS 140-2 and FIPS 140-3 Explained

6 Min Read • Published on Nov 25, 2026
Tutorial contents
In this page

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 isIt is not
A test of a specific module and versionA rating of a whole product or company
A requirement for US federal use, and common in finance, healthcare, defenseA guarantee of no vulnerabilities
About correct algorithms, key handling and self-testsA 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-2FIPS 140-3
Published20012019 (effective 2020)
Based onIts own textISO/IEC 19790 and 24759
New validationsClosed: no new submissionsYes
Existing certificatesMoved to the Historical list on September 21, 2026: still listed, but not for new federal purchasesFive-year validity
Notable changeStricter self-tests, more on software/firmware integrity, side-channel testing, and some new requirements for entropy
Check the current status
Dates and policies change. Before you rely on a certificate, look it up on the NIST CMVP “Validated Modules” and “Modules In Process” lists, and ask your auditor which they accept.

Both versions define security levels:

LevelWhat it addsExample
1Approved algorithms and basic production-grade design; no physical protection requiredA software library
2Tamper evidence (seals, coatings) and role-based authenticationMany HSMs, tokens
3Tamper resistance and response (zeroize on attack) and identity-based authenticationHigh-end HSMs
4Protection against environmental attacks as wellRare

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:

  1. 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.
  2. 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.
  3. Roles and authentication. For example Crypto Officer vs User, so that administering the module and using its keys are separate powers.
  4. Key management rules: how keys are generated, stored, and zeroized (overwritten so they cannot be recovered).
  5. Approved random number generator (DRBG with a validated entropy source). The first page explained why this is the foundation.
  6. 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 sshd with 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.
StandardWhat it is
FIPS 186-5Digital signatures (RSA, ECDSA, EdDSA)
FIPS 197AES
FIPS 180-4 / 202SHA-2 / SHA-3
FIPS 203 / 204 / 205ML-KEM, ML-DSA, SLH-DSA (post-quantum)
NIST SP 800-57Key management guidance: lifetimes, strengths
NIST SP 800-131AWhich algorithms are allowed and until when
Common CriteriaA different evaluation, of products against a protection profile
PCI HSM, eIDAS, WebTrust for CAsSector requirements that often cite FIPS 140

A short customer-conversation script

“Is the product FIPS compliant?” is not a question you can answer. Ask:

  1. Which module performs cryptography (name and version)?
  2. What is its CMVP certificate number, and is it Active?
  3. At what security level, and is it 140-2 or 140-3?
  4. Is the product configured to run in the approved mode, and is this documented?
  5. 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 →

Start Your Free Trial Now

Try BastionXP for free with no commitments. No credit card required.