Skip to content

FIPS 140-3 mode

SFTPGo can run in FIPS 140-3 mode, where every security boundary uses only cryptography provided by a FIPS-validated module. This is intended for deployments that must satisfy a FIPS 140-3 requirement (US federal, defense contractors, regulated industries).

What FIPS mode provides

FIPS builds are compiled against the Go Cryptographic Module v1.0.0 (CMVP certificate #5247, CAVP A6650). The module is a self-contained Go module — not an OpenSSL wrapper. In a FIPS build, FIPS mode is active by default: the module runs its power-on self-tests at startup and routes the approved algorithms through the validated implementation.

⚠ A license with the FIPS feature enabled is required. FIPS mode is part of the Ultimate tier: a FIPS build refuses to start unless the active license includes the FIPS feature. Make sure your license covers FIPS before deploying a FIPS build.

Installing a FIPS build

FIPS builds are distributed alongside the standard builds. See Installation for the package repositories and Docker for the image variants.

  • Linux (APT/YUM): install the sftpgo-fips package, plus sftpgo-plugins-fips for the bundled plugins.
  • Windows: download the FIPS installer.
  • Docker: use the -fips image variants (see Image variants).

No runtime configuration is required: installing a FIPS build is what selects FIPS mode.

Behavior in FIPS mode

In FIPS mode SFTPGo restricts itself to approved algorithms automatically; most of this needs no configuration.

Password hashing

Password hashing uses PBKDF2-SHA256, which is FIPS-approved.

Data-at-rest encryption (CryptFs)

Encrypted folders use AES-256-GCM in FIPS mode. On non-FIPS builds without AES hardware acceleration, SFTPGo may instead use ChaCha20-Poly1305; files encrypted that way cannot be read under FIPS mode and must be re-encrypted first. On hardware with AES-NI — the common case — existing files are already AES-256-GCM and are unaffected.

TLS (FTPS, WebDAV, HTTPS, REST)

Only approved TLS 1.2 and 1.3 cipher suites and signature algorithms are negotiated. TLS 1.3 offers the post-quantum hybrid key exchanges X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024, as in the standard builds. Certificates may use RSA (2048-bit or larger), ECDSA (P-256/P-384/P-521), or Ed25519 keys. Clients restricted to non-approved algorithms — notably ChaCha20-Poly1305, or TLS 1.1 and earlier — cannot connect.

SSH (SFTP)

Only approved SSH algorithms are negotiated. Modern key exchanges, including the post-quantum hybrid mlkem768x25519-sha256, and AES-GCM/AES-CTR ciphers remain available, so current SSH clients connect without changes; clients pinned to non-approved algorithms, for example ChaCha20-Poly1305, need reconfiguration.

Host keys and user public keys may use RSA, ECDSA, or Ed25519; SHA-1-based algorithms are not accepted. Without configured host keys a FIPS build generates and loads the RSA, ECDSA and Ed25519 keys. The post-quantum ML-DSA keys, pure (ssh-mldsa-44, ssh-mldsa-65, ssh-mldsa-87) and hybrid (ssh-mldsa44-ed25519), are available in the standard builds. Before switching to a FIPS build, remove the ML-DSA host keys from host_keys and from Server Manager > Configurations > SFTP, and give the users that authenticate with an ML-DSA key an RSA, ECDSA or Ed25519 key: a FIPS build skips ML-DSA keys at login and refuses them when a user is saved.

Two-factor authentication (TOTP)

TOTP-based two-factor authentication works unchanged in FIPS mode and existing enrollments remain valid. The default TOTP configuration uses HMAC-SHA1, the RFC 6238 standard supported by every authenticator app. Use SHA-256 to keep TOTP verification within the validated module: the default sha1 is NIST-approved for HMAC (NIST plans to retire SHA-1 for all uses by the end of 2030) but is computed outside the module, which implements the SHA-2 and SHA-3 families.

On a new installation set the algorithm to sha256 from the start, using algo in the mfa section of the configuration file or the equivalent environment variable SFTPGO_MFA__TOTP__0__ALGO="sha256". On an existing installation define an additional TOTP configuration with algo set to sha256 and have users and admins enroll with it. Authenticator app support for SHA-256 varies, see the two-factor authentication tutorial for compatible apps.

⚠ Changing the algorithm of an existing TOTP configuration invalidates the enrollments that use it. To move existing users to SHA-256, add a new configuration and have them re-enroll.