FIPS 140-3 Compliance in Nexus Repository 3.99 and Later
Nexus Repository Pro, Pro+, and Enterprise can use cryptographic services provided by a FIPS-enabled Red Hat Enterprise Linux host. Starting in Nexus Repository 3.99, FIPS mode is detected from the operating system at the startup. Nexus Repository no longer uses Bouncy Castle FIPS to provide FIPS mode.
Nexus Repository does not supply a separately validated cryptographic module. On a supported FIPS host, it uses the cryptographic module provided by the operating system through Red Hat OpenJDK 25.
If your host is already in FIPS mode and your installation meets all FIPS mode requirements, Nexus Repository 3.99 automatically starts in FIPS mode, even if you did not enable FIPS mode in an earlier version.
Requirements
Before running Nexus Repository in FIPS mode, confirm that the environment meets these requirements:
Requirement | Configuration |
|---|---|
Edition | Nexus Repository Pro, Pro+, or Enterprise, with a license available before startup. |
Operating System | RHEL 9 in FIPS mode, or the Nexus Repository UBI 9 container running on a FIPS-enabled host. |
Java | Stock Red Hat OpenJDK 25 with its default |
Container Image | Use UBI 9 image for FIPS mode. |
Launch method | Use the supplied |
The standard Nexus Repository installers bundle Eclipse Temurin Java 25. On a FIPS host, configure Nexus Repository to use Red Hat OpenJDK 25 instead of the bundled Temurin runtime.
FIPS mode is not supported on Windows or macOS. Community Edition does not start on a FIPS-enabled host.
How Nexus Repository Detects FIPS Mode
Nexus Repository auto-detects FIPS mode from the host each time it starts. The host must report that FIPS mode is enabled, and either the system cryptographic policy or Red Hat OpenJDK must report the FIPS provider.
Nexus Repository detects FIPS mode when /proc/sys/crypto/fips_enabled contains 1 and at least one of the following conditions is met:
The operating system's cryptographic policy, recorded in
/etc/crypto-policies/state/current, starts withFIPS.The first registered Java security provider is
SunPKCS11-FIPS.
Starting in Nexus Repository 3.99, you cannot enable or disable FIPS mode through Nexus Repository configuration. The nexus.security.fips.enabled property no longer controls FIPS mode. Nexus Repository determines whether to run in FIPS mode based on the host environment at each startup.
Prepare the Host and Java Runtime
Prepare a RHEL 9 host with FIPS mode enabled during operating system installation. For instructions, see the Red Hat Security Hardening documentation.
If you install Nexus Repository directly on RHEL, install the Red Hat build of OpenJDK 25. For example, on a host with access to the required Red Hat package repositories, run the following command to install the JDK:
sudo dnf install java-25-openjdk-headless
For other installation methods, see Installing Red Hat Build of OpenJDK 25 on RHEL.
Configure Nexus Repository to use Red Hat OpenJDK 25 according to your installation method:
Installation Method | Java Configuration |
|---|---|
Linux installer | Set |
Assembly ZIP | Configure |
UBI 9 container image | Red Hat OpenJDK 25 is included in the image. No separate Java installation is required. |
Use the default Red Hat OpenJDK security configuration. Do not configure a custom NSS database or replace the default FIPS security provider.
For a direct installation on RHEL, verify the Java security provider using the Java executable that Nexus Repository will use:
"<java-home>/bin/java" -XshowSettings:security:providers -version 2>&1 | grep -m1 'Provider name'
Replace <java-home> with the Red Hat OpenJDK 25 installation directory. The first provider must be SunPKCS11-FIPS.
Container Deployments
The UBI 9 image detects FIPS mode from the host kernel and the Java security provider. For Kubernetes or OpenShift deployments using this image, ensure the worker nodes that run Nexus Repository are FIPS-enabled.
The Alpine container image does not provide the required FIPS security provider. It does not run Nexus Repository in FIPS mode, even when the host is FIPS-enabled.
Configure the Launcher
The supplied Linux bin/nexus launcher automatically adds the JVM option required for FIPS mode. If you use a custom launcher that invokes Java directly, include the following JVM option:
--add-opens jdk.crypto.cryptoki/sun.security.pkcs11=ALL-UNNAMED
Nexus Repository does not start if this option is missing.
Install a License Before Startup
If your installation does not already have a license, configure the following property in nexus.properties before starting Nexus Repository:
nexus.licenseFile=<path-to-license-file>
Replace <path-to-license-file> with the path to your Nexus Repository license file.
An unlicensed installation runs as Community Edition and cannot start in FIPS mode. You cannot install the license through the UI or REST API until Nexus Repository starts.
For more information, see License Management.
Prepare an Existing Installation for FIPS Mode
Before starting an existing Nexus Repository installation in FIPS mode:
Back up your Nexus Repository installation, including its database, configuration files, HTTPS keystore, and secrets encryption key material. See Prepare a Backup.
Review and prepare your HTTPS configuration, if Nexus Repository serves HTTPS directly.
Review Existing Repository Signing Keys and prepare compatible keys where required.
Review your Authentication and Integration, Secrets Encryption configurations for compatibility with FIPS mode. Ensure that you have access to an administrator account that can authenticate independently of external identity providers.
If you are also upgrading Nexus Repository, review the Nexus Repository Upgrade Paths. If you previously configured FIPS mode in a version earlier than 3.99, complete the transition from the earlier FIPS implementation.
After completing the applicable preparations, start Nexus Repository on the FIPS-enabled host and verify that FIPS mode is active. Complete any required repository signing configuration changes and validate your integrations before returning the instance to production use.
Transition From the Earlier FIPS Implementation
If you configured FIPS mode in Nexus Repository versions earlier than 3.99, replace the Bouncy Castle FIPS configuration with the host-based FIPS configuration.
Warning
If you previously enabled FIPS mode with nexus.security.fips.enabled=true on a host that is not FIPS-enabled, Nexus Repository runs without FIPS protections after the upgrade. Prepare a supported FIPS-enabled host before upgrading.
Consider the following steps before starting the upgraded installation:
Remove the old FIPS enablement setting from
nexus.properties, JVM options (-Dnexus.security.fips.enabled), and theNEXUS_SECURITY_FIPS_ENABLEDenvironment variable.Use the default Red Hat OpenJDK 25 security configuration instead of the Bouncy Castle FIPS provider configuration used by the earlier installation.
Remove the legacy BCFKS truststore configuration from
nexus.vmoptions. This includes the following options when they reference the old BCFKS truststore:-Djavax.net.ssl.trustStoreType=bcfks -Djavax.net.ssl.trustStore=<path-to-bcfks-truststore> -Djavax.net.ssl.trustStorePassword=<truststore-password>
Leaving the legacy BCFKS truststore configuration in place prevents Nexus Repository from starting. Corporate CAs that were only in the old BCFKS trust store are lost when it’s removed causing proxy repositories fail with
PKIX path building failed.Configure the required certificates in the appropriate truststore before returning the instance to production use. See Outbound TLS Truststores.
Convert your BCFKS HTTPS keystore to PKCS12 if you use HTTPS directly in Nexus Repository. See Convert an Existing HTTPS Keystore.
Use the
jetty-https-fips.xmlfile supplied with the upgraded version. Do not retain the earlier Bouncy Castle FIPS version of this file. Checkssl.etcand the keystore path as described in Configure the HTTPS Connector.
Note
Once a database has been used by Nexus Repository in FIPS mode, continue using it only with instances running in FIPS mode. This includes restoring database backups and configuring high-availability deployments. Nexus Repository does not enforce this restriction. Non-FIPS instances cannot use repository signing keys encrypted in FIPS mode and do not enforce the same cryptographic restrictions.
Verify FIPS Mode
On the RHEL host, run the following commands to verify that FIPS mode is enabled:
fips-mode-setup --check cat /proc/sys/crypto/fips_enabled update-crypto-policies --show
The first command reports whether FIPS mode is enabled. The second command must return 1, and the cryptographic policy must start with FIPS on the RHEL host.
After starting Nexus Repository, review nexus.log for signing key, authentication, and integration errors or warnings. Verify that repository clients can authenticate and access content, configured repositories can sign metadata, and external integrations continue to function. Also review for the message beginning with FIPS mode is on and confirm that SunPKCS11-FIPS is the first registered security provider. For example, the following message appears on a RHEL host using the FIPS cryptographic policy:
FIPS mode is on (detected from the host: /proc/sys/crypto/fips_enabled=1, /etc/crypto-policies/state/current=FIPS, first JDK provider=SunPKCS11-FIPS)
The reported cryptographic policy can differ in a UBI 9 container. You can also view FIPS-related information on the About page and in the system information included in a support ZIP.
Nexus Repository checks the edition, security provider, required JVM option, and cryptographic module at startup. If a required check fails, Nexus Repository does not start. If HTTPS is configured directly in Nexus Repository, the HTTPS keystore is also validated before the server starts accepting requests.
Configure TLS in FIPS Mode
In FIPS mode, Nexus Repository applies cryptographic restrictions to both inbound and outbound TLS connections. If Nexus Repository handles HTTPS directly, configure its HTTPS server keystore and connector for FIPS mode. If HTTPS terminates at a reverse proxy or load balancer instead, you do not need to configure a Nexus Repository HTTPS connector solely to enable FIPS mode. Outbound TLS requirements apply regardless of how you configure inbound HTTPS.
HTTPS Keystore Requirements
The HTTPS keystore must meet the following requirements:
Configuration | Requirement |
|---|---|
Keystore format | PKCS12. |
Key protection | PBES2 with PBKDF2 using HMAC-SHA-256, HMAC-SHA-384, or HMAC-SHA-512, and AES-128-CBC, AES-192-CBC, or AES-256-CBC. |
Minimum key protection iterations | 1,000. |
Keystore message authentication code (MAC) | SHA-256, SHA-384, or SHA-512. |
Server private key | RSA (2,048 to 4,096 bits) or ECDSA (P-256, P-384, or P-521), with its certificate chain. RSASSA-PSS keys are not supported. |
Password | The private key password must match the keystore password. |
Nexus Repository validates the keystore and verifies that the FIPS security provider can sign using the private key during startup. Although keytool and OpenSSL can generate 1,024-bit or 8,192-bit RSA keys and RSASSA-PSS keys, Nexus Repository does not support these keys in FIPS mode. Nexus Repository does not start if the required validation fails.
Create a PKCS12 Keystore
Run the following examples from your Nexus Repository installation directory. If you have configured a different SSL directory using ssl.etc, adjust the file paths accordingly.
To generate a self-signed certificate with a 2,048-bit RSA private key, run the keytool utility included with Red Hat OpenJDK 25 on your FIPS-enabled host:
keytool -genkeypair -alias jetty -keyalg RSA -keysize 2048 \ -sigalg SHA256withRSA -validity 365 \ -dname "CN=<hostname>" -ext "SAN=dns:<hostname>" \ -storetype PKCS12 -keystore etc/ssl/keystore.p12
Replace <hostname> with the hostname used to access Nexus Repository. Adjust -validity (in days) to meet your organization's certificate policy. Use the password entered when prompted as the value of jetty.sslContext.keyStorePassword when configuring the HTTPS connector.
If you have a CA-issued certificate and its private key in PEM format, create the PKCS12 keystore using OpenSSL in FIPS mode:
openssl pkcs12 -export -inkey server.key \ -in server.crt -certfile ca-chain.crt \ -name jetty -out etc/ssl/keystore.p12
Replace the input filenames with the paths to your private key, server certificate, and CA certificate chain. Check that the private key and its certificate chain meet the HTTPS Keystore Requirements. Use the export password entered when prompted as the value of jetty.sslContext.keyStorePassword when configuring the HTTPS connector.
Convert an Existing HTTPS Keystore
If your existing HTTPS keystore is JKS, JCEKS, BCFKS, or a PKCS12 file using legacy protection algorithms, convert it to a PKCS12 keystore with compatible protection. Back up the original keystore before converting it.
Manual Conversion
Use keytool from Java 21 or Java 25 to convert a JKS keystore:
keytool -importkeystore \ -srckeystore etc/ssl/keystore.jks \ -destkeystore etc/ssl/keystore.p12 \ -deststoretype PKCS12
For other legacy keystore formats, adapt the command as follows:
Existing Keystore | Conversion Requirements |
|---|---|
PKCS12 created using legacy protection algorithms, such as JDK 8 defaults | Run on a non-FIPS host. Use different source and destination filenames, such as |
JCEKS | Run on a non-FIPS host and add |
BCFKS | Run on a non-FIPS host using the Bouncy Castle FIPS JAR required to read the original keystore, as shown in the following example. |
To convert a BCFKS keystore:
keytool -importkeystore \ -srckeystore keystore.bcfks -srcstoretype BCFKS \ -providerpath "<bc-fips-jar>" \ -providerclass org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider \ -destkeystore keystore.p12 -deststoretype PKCS12
Replace <bc-fips-jar> with the path to the Bouncy Castle FIPS JAR. Enter the source and destination passwords when prompted. Ensure the private key password matches the destination keystore password.
After conversion, place the PKCS12 keystore in the configured SSL directory and update jetty.sslContext.keyStorePath to reference the new file. Move the old keystore and any temporary backup copies to secure storage outside the SSL directory.
Note
Converting a legacy PKCS12 keystore on a FIPS-enabled host can fail with a keystore password was incorrect error, even when the password is correct. Perform the conversion on a non-FIPS host.
Automatic Conversion
Nexus Repository can convert eligible JKS, BCFKS, and legacy PKCS12 keystores in place during startup. To enable this option, set the following property in nexus.properties:
nexus.security.fips.tls.keystore.convert=true
Automatic conversion is disabled by default. When enabled, Nexus Repository preserves the keystore password, keys, aliases, and certificates and updates the keystore protection. The original keystore is retained in the same directory as <keystore-name>.legacy-<timestamp>, with access restricted to its owner.
The converted file retains its original filename, even if that filename has a .bcfks extension. Ensure jetty.sslContext.keyStorePath references the file being converted.
The following limitations apply:
The keystore directory must allow Nexus Repository to replace the file and retain the backup. Convert keystores mounted read-only, such as Kubernetes Secrets, manually before startup. Single-file bind mounts or
subPathmounts can also prevent in-place conversion.JCEKS keystores cannot be converted automatically. Convert them on a non-FIPS host.
Remove the
-Dkeystore.pkcs12.legacyJVM option if configured. Customkeystore.pkcs12.certProtectionAlgorithmorkeystore.pkcs12.macAlgorithmJVM settings can cause the converted keystore to fail validation.
Caution
The original keystore retained after conversion contains the private key protected by its earlier encryption scheme. After verifying HTTPS, move the original file to secure storage or remove it according to your organization's key-management policies.
Configure the HTTPS Connector
Place the compatible keystore in etc/ssl under the Nexus Repository installation directory. If your existing nexus.properties contains ssl.etc=${karaf.data}/etc/ssl, Nexus Repository uses the etc/ssl directory under the data directory instead (for example, sonatype-work/nexus3/etc/ssl). Either retain that location or remove the override and move the keystore to the installation directory's etc/ssl directory.
Add or update the following properties in nexus.properties:
application-port-ssl=8443
nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-https.xml,${jetty.etc}/jetty-https-fips.xml,${jetty.etc}/jetty-requestlog.xml
jetty.sslContext.keyStorePath=keystore.p12
jetty.sslContext.keyStorePassword=<keystore-password>The example uses port 8443 and a keystore named keystore.p12. Adjust these values for your environment and replace <keystore-password> with the keystore password.
Ensure that the nexus-args property includes jetty-https-fips.xml after jetty-https.xml. The FIPS overlay applies the FIPS-specific protocol and cipher suite configuration. Starting successfully without the overlay does not mean that these restrictions are applied.
The FIPS overlay reads the keystore password from jetty.sslContext.keyStorePassword, not from a password specified in jetty-https.xml. The HTTPS configuration uses the same file as its keystore and truststore.
If you use multiple nodes, ensure they use the same keystore file and password. Restart each node when replacing the HTTPS private key.
If your security requirements prohibit direct HTTP access, follow the instructions to disable the HTTP connector. See Configuring SSL.
TLS Compatibility
The FIPS HTTPS configuration supports TLS 1.3 and TLS 1.2 using the following cipher suites:
Protocol | Cipher Suites |
|---|---|
TLS 1.3 |
|
TLS 1.2 |
|
OpenSSL-based clients running in FIPS mode, such as curl and dnf, must use TLS 1.3 when connecting directly to Nexus Repository. Red Hat OpenJDK in FIPS mode does not negotiate the Extended Master Secret extension required by these clients for TLS 1.2.
The same restriction applies to outbound TLS connections. Connections to remote repositories, LDAP servers, or other services that use OpenSSL in FIPS mode require TLS 1.3. If the remote service supports only TLS 1.2, the connection fails with a handshake_failure error.
In FIPS mode, Nexus Repository configures the TLS key exchange groups for inbound and outbound connections using the following JVM property unless you explicitly set it as a JVM option:
jdk.tls.namedGroups=secp256r1,secp384r1,secp521r1,ffdhe2048,ffdhe3072
If you override this property, use supported groups and configure the value as a JVM option, not in nexus.properties. X25519 and hybrid ML-KEM groups are not supported by the FIPS provider.
Ensure that remote repositories, LDAP servers, identity providers, and other external services accessed by Nexus Repository support compatible TLS protocols, cipher suites, and key exchange groups.
Outbound TLS Truststores
Nexus Repository uses different truststores depending on the service it connects to. If a remote service uses a certificate issued by a private certificate authority (CA), configure certificate trust as follows:
Connection | Truststore Configuration |
|---|---|
Proxy repositories and LDAP servers | Add the required certificates under SSL Certificates and enable the Nexus Repository truststore option in the corresponding repository or LDAP configuration. |
S3, Azure, and Google Cloud blob stores | Add the required certificates to the JVM truststore ( |
For RSA certificates, use keys of at least 2,048 bits. Certificates must use SHA-256 or stronger signature algorithms.
Although the SSL Certificates interface accepts certificates with 1,024-bit RSA keys or SHA-1 signatures, TLS connections using these certificates fail in FIPS mode.
For information on configuring truststores, see Configuring SSL.
Repository Signing in FIPS Mode
In FIPS mode, Nexus Repository restricts the algorithms, key sizes, and key protection methods used for repository signing.
The following signing keys are supported:
Repository Format | Supported Signing Keys |
|---|---|
APT (hosted), YUM (proxy and group) and Terraform (hosted) | OpenPGP private signing keys using RSA (2,048 to 4,096 bits) or ECDSA (P-256, P-384, or P-521). |
Alpine | RSA private keys (2,048 to 4,096 bits) in PEM-encoded PKCS#1 or PKCS#8 format. |
Passphrase-protected signing keys are not supported in FIPS mode. The repository configuration forms hide the Passphrase field. When configuring signing through the REST API, leave the passphrase field empty or omit it. A create or update request with a non-empty passphrase is rejected with HTTP 400.
When generating an OpenPGP signing key, explicitly select a supported algorithm with signing capability. Recent versions of GnuPG can generate Ed25519 keys by default, which are not supported in FIPS mode.
Review Existing Signing Keys
Before migrating to FIPS mode, review the signing keys configured in your repositories.
Existing Signing Key | Behavior in FIPS Mode | Required Action |
|---|---|---|
Supported key without a passphrase | Repository signing continues. | No signing key changes are required. To encrypt the existing signing key, save the repository configuration in FIPS mode. See Signing Key Encryption. |
Supported key protected by a passphrase | The repository loads, but signing fails. | Remove the passphrase and save the key in the repository configuration. |
Unsupported key | The repository loads, but signing fails. | Generate and configure a supported signing key. See Generate a Signing Key. |
Existing Alpine indexes signed using SHA-1 with a compatible signing key | Nexus Repository initiates automatic index re-signing with SHA-256. | None. See Alpine Index Signing. |
Repositories without a configured signing key require no signing-key changes. Nexus Repository logs an error at startup for each repository with an unsupported or passphrase-protected signing key.
For OpenPGP keys, list the keys and their algorithms using GnuPG:
gpg --list-secret-keys --keyid-format long
Ensure that the key uses a supported RSA size or NIST ECDSA curve and has signing capability ([S] or [SC]). For Alpine, check the private key type and size using OpenSSL:
openssl pkey -in alpine-key.pem -noout -text | head -1
Replace alpine-key.pem with the path to your private key. Ensure that the key is RSA, uses a supported size, and is not protected by a passphrase. A passphrase-protected PEM file can contain BEGIN ENCRYPTED PRIVATE KEY or Proc-Type: 4,ENCRYPTED.
Generate a Signing Key
When configuring a new signing key or replacing an unsupported signing key in FIPS mode, use a supported algorithm and key size without passphrase protection.
OpenPGP Signing Keys
For APT, Yum, and Terraform repositories, take the following steps to generate an OpenPGP signing key using GnuPG:
Generate a 4,096-bit RSA signing key without a passphrase:
gpg --batch --pinentry-mode loopback --passphrase '' \ --quick-generate-key "Nexus Signing <[email protected]>" rsa4096 sign 2y
Replace the example name and email address with your signing identity. Adjust the key expiration period (
2y) according to your organization's security policy.Alternatively, to generate an ECDSA signing key using the P-384 curve, run:
gpg --batch --pinentry-mode loopback --passphrase '' \ --quick-generate-key "Nexus Signing <[email protected]>" nistp384 sign 2y
List the available secret keys and identify the generated signing key ID:
gpg --list-secret-keys --keyid-format long
Export the private and public keys:
gpg --armor --export-secret-keys "<key-id>" > signing-private.asc gpg --armor --export "<key-id>" > signing-public.asc
Replace
<key-id>with the signing key ID identified in the previous step.Verify that the exported private key is not protected by a passphrase:
gpg --list-packets signing-key-nopass.asc | grep -iE 'protect|s2k'
Follow Save and Verify a Signing Key using
signing-private.asc.Remove the temporary private key file after verifying the repository configuration.
Alpine Signing Keys
To generate an Alpine signing key that meets the FIPS signing requirements, follow the instructions in Generate an Alpine Signing Key. After generating the key, follow Save and Verify a Signing Key.
Remove Passphrase From Existing Signing Key
If your signing key uses a supported algorithm but is protected by a passphrase, remove the passphrase before saving the key in Nexus Repository. You do not need to generate a new key solely to remove its passphrase.
Caution
The following procedures create private key files without passphrase protection. Restrict access to these files and retain your key material in secure storage. Remove temporary copies after verifying the repository configuration.
OpenPGP Signing Keys
For APT, Yum, and Terraform repositories, removing the passphrase from an existing OpenPGP signing key preserves its fingerprint. Clients can continue using the corresponding public key.
Back up your GnuPG keyring.
Run the following command to remove the passphrase:
gpg --edit-key "<key-id>" passwd
Replace
<key-id>with your signing key ID. Enter the current passphrase, enter an empty new passphrase, and confirm the change. At thegpg>prompt, enter save.Export the private key:
gpg --armor --export-secret-keys "<key-id>" > signing-key-nopass.asc
Verify that the exported private key is not protected by a passphrase:
gpg --list-packets signing-key-nopass.asc | grep -iE 'protect|s2k'
After a successful key export, this command must return no output.
Follow Save and Verify a Signing Key using
signing-key-nopass.asc.Remove the temporary private key file after verifying the configuration.
Alpine Signing Keys
Removing the passphrase from an Alpine private key changes its PEM representation and the public key filename expected by Alpine clients, even if the underlying RSA key remains unchanged.
Back up the original private key securely.
Remove the passphrase using OpenSSL:
openssl pkey -in alpine-key.pem -out alpine-key-nopass.pem
Replace
alpine-key.pemwith the path to your existing private key. Enter the current passphrase when prompted. The resulting file is an unprotected PKCS#8 key.Follow Save and Verify a Signing Key using
alpine-key-nopass.pem.
Save and Verify a Signing Key
Take the following steps to save the signing keys:
In the repository configuration, enter the contents of the supported private key file in the signing key field and save the repository. Nexus Repository removes any previously stored passphrase when you save the configuration in FIPS mode.
If you generated a new OpenPGP key, ensure clients trust the corresponding public key. For an Alpine key that you replaced or converted, follow Update Alpine Client Trust.
Check
nexus.logfor signing errors and verify that a client can validate the repository metadata signature. For instructions on configuring signing and verifying signatures, see the respective repository format documentation linked in the supported signing keys table.
Alpine Index Signing
In FIPS mode, Nexus Repository signs Alpine package indexes using SHA-256 instead of SHA-1. When an Alpine repository with a compatible signing key starts in FIPS mode, Nexus Repository handles existing SHA-1-signed indexes as follows:
Nexus Repository schedules a metadata rebuild for hosted repositories.
For proxy and group repositories, Nexus Repository marks existing SHA-1-signed indexes as stale and rebuilds them when they are next requested.
No manual action is required to initiate this transition. Existing clients can continue using the same public key file if the private key's PEM representation has not changed.
Update Alpine Client Trust
Alpine clients identify the public key by a filename derived from the private key's PEM representation. Removing a passphrase or converting between PKCS#1 and PKCS#8 changes the expected filename. Generating a new private key requires a new public key.
Nexus Repository signs the index again automatically after you save the key, so no rebuild is normally required. If you removed a passphrase, converted the key, or generated a new key, update the clients of that Alpine repository. This applies to hosted, proxy and group repositories. If you did not change the key, clients need no update.
Take the following steps if any of the above actions are performed:
Download a regenerated
APKINDEX.tar.gzfrom the repository and inspect its signature entry:tar -tzf APKINDEX.tar.gz | grep '^\.SIGN'
The entry has the format
.SIGN.RSA256.key-XXXXXXXX.rsa.pub. The public key filename expected by the client iskey-XXXXXXXX.rsa.pub. If the entry still shows the previous filename, run the Alpine - Rebuild metadata task for the repository (hosted and proxy repositories only) as a fallback, then download the index again.Extract the public key from the private key saved in the repository configuration using the filename identified in the previous step:
openssl pkey -in alpine-key.pem -pubout -out key-XXXXXXXX.rsa.pub
Replace
alpine-key.pemwith the private key file you saved in the repository configuration, andkey-XXXXXXXX.rsa.pubwith the actual public key filename.Install the public key in the /etc/apk/keys directory on each client and run apk update to verify that the client trusts the repository signature. Retain the previous public key until all affected clients have been updated.
Remove temporary copies of the unprotected private key and retain the key in secure storage.
Signing Key Encryption
In FIPS mode, Nexus Repository encrypts repository signing keys when you create or update a repository configuration.
Existing signing keys are not automatically encrypted when you move to FIPS mode. To encrypt an existing supported signing key, save the repository configuration in FIPS mode, even if no other changes are required.
Authentication and Integration Requirements
Review the following configurations before starting Nexus Repository in FIPS mode:
Configuration | FIPS Mode Requirements |
|---|---|
Local users | Users whose passwords are stored as unsalted SHA-1 or MD5 hashes cannot authenticate. An administrator must reset these passwords. |
LDAP | The |
SAML | Encrypted assertions and SHA-1 or MD5 signatures and reference digests are not supported. Configure the identity provider to send signed, unencrypted assertions using RSA-SHA256 or a stronger supported signature algorithm. |
S3 Blob Stores | The secret access key must be at least 12 characters long. A shorter key causes requests to fail with an |
JSON Web Token (JWT) secret | The JWT signing secret must be at least 16 bytes long. A shorter secret prevents UI login. |
Webhooks | New webhook secrets must be at least 16 bytes long. Existing secrets shorter than 10 bytes prevent webhook delivery. Replace these secrets with values of at least 16 bytes. |
LDAP password encoding restrictions apply only when a user password attribute is configured. LDAP connections that use bind authentication (with the user password attribute left empty) are not affected by these restrictions.
If you have configured ldap.preferredEncoding with an unsupported scheme, Nexus Repository logs an error at startup and refuses that scheme when it is used. Change the setting to a supported SHA-2-based scheme (SSHA256, SSHA384 or SSHA512), or use bind authentication.
If the JWT secret is shorter than 16 bytes, use basic authentication to regenerate the secret through PUT /service/rest/v1/security/jwt. Basic authentication remains available even when UI login fails due to the short JWT secret.
Existing webhook secrets that are 10 to 15 bytes long continue to work. When replacing a webhook secret, use at least 16 bytes.
Existing SAML Configurations
Nexus Repository automatically updates existing SAML keystores that use legacy protection algorithms at startup, in both FIPS and non-FIPS installations.
If the conversion fails, Nexus Repository logs a warning and retries it at the next startup. In FIPS mode, SAML login is unavailable on the affected node until the conversion succeeds. If conversion continues to fail, re-create the SAML configuration and import the new service provider metadata into your identity provider. See SAML.
Secrets Encryption
In FIPS mode, Nexus Repository enforces PBKDF2WithHmacSHA256 as the target key derivation algorithm with a minimum of 10,000 iterations. Nexus Repository overrides any other configured target algorithm or iteration count below 10,000. You can configure a higher target iteration count.
For information about configuring encryption properties, see Configuring the Runtime Environment.
When upgrading from a version earlier than 3.99, Nexus Repository automatically re-encrypts existing API key principal data with the target recipe. It also re-encrypts stored secrets that use a different key derivation algorithm or fewer iterations than the target recipe. Stored secrets that already use the target algorithm with at least the target iteration count remain unchanged. This migration applies to both FIPS and non-FIPS installations.
If you previously customized your encryption settings, review the migration requirements before upgrading. See Re-encryption in Nexus Repository.
Repository Checksums
FIPS mode does not change repository content checksums or identifiers, such as Maven MD5 and SHA-1 checksum files and OCI digests. These values identify repository content and are distinct from the cryptographic operations used for authentication, secrets encryption, and repository signing.