As Crypto Officer, you must establish a root password conforming to the FIPS password
requirements in Understanding Password Specifications and Guidelines for Junos OS in FIPS Mode. When you enable FIPS
mode in Junos OS on the device, you cannot configure passwords unless they meet this
standard.
Local passwords are encrypted with the secure hash algorithm SHA256 or SHA512. Password
recovery is not possible in Junos OS in FIPS mode. Junos OS in FIPS mode cannot boot into
single-user mode without the correct root password.
To enable FIPS mode in Junos OS on the device:
-
Zeroize the device to delete all CSPs before entering FIPS mode. See Zeroizing the System.
-
After the device comes up in Amnesiac mode, login using console with username
root and password (blank).
login :root
Password:
--- JUNOS 22.3R1-S2.3 Kernel 64-bit JNPR-12.1-20230120.6ccdef2_buil
root@:~ # cli
root>
- Configure root authentication with password at least 10
characters or more.
root@switch> edit
Entering configuration mode
[edit]
root@switch# set system root-authentication plain-text-password
New password:
Retype new password:
root@switch# commit
configuration check succeeds commit complete
-
Load configuration onto the dvice and commit new configuration.
- Configure Crypto Officer and login with Crypto Officer
credentials.
-
The
fips-mode.tgz is an optional package needed for enabling FIPS.
This package is part of Junos OS software. To enable this package, use below
command:
root@host>request system software add optional://fips-mode.tgz
Verified fips-mode signed by PackageProductionECP256_2022 method ECDSA256+SHA256
-
Configure system boundary fips by setting the
set system fips level 1
command followed by the commit command.
[edit]
root@hostname# set system fips level 1
Note:
The device might display warnings to delete older CSPs in loaded configuration-
Encrypted-password must be re-configured to use FIPS compliant hash.
-
After deleting and reconfiguring the CSPs, commit is successful and the device needs
reboot to enter FIPS mode.
crypto-officer@host# commit
configuration check succeeds
[edit]
'system'
warning: reboot is required to transition to FIPS level 1
commit complete
[edit]
crypto-officer@host# run request system reboot
-
After rebooting the device, FIPS self-tests will run and device enters FIPS mode.
crypto-officer@switch:fips>