Establishing Root Password Access (FIPS Mode)
When Junos OS is installed on a router and the router is powered on, it is ready to be configured. Initially, you log in as the user root with no password.
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 router, you cannot configure passwords unless they meet this standard.
Local passwords are encrypted with the secure hash algorithm HMAC-SHA-1, HMAC-SHA-256 or HMAC-SHA-512. 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.
After you log in, configure the root (superuser) password to be used to access the router as follows:
- Log in to the router if you have not already done so,
and enter configuration mode:% cli
— JUNOS 17.3-20170807.0 built 2017-08-07 05:14:27 UTCroot@host:fips> configure
Entering configuration mode
- To set the password format, include the format statement at the [edit system password] hierarchy level.
root@host:fips# set system password format (sha256 | sha512)
- Configure a temporary root password so that you can commit the configuration changes.
- Commit the configuration changes.
- Reset the root password to meet FIPS requirements.
- Configure the root password by including the root-authentication statement at the [edit system] hierarchy level and selecting
one of the password options.
To configure a plain-text password, select the plain-text-password option. Enter and confirm the password at the prompts.root@host:fips# set system root-authentication plain-text-passwordNew password: type password hereRetype new password: retype password here
Ensure that you follow the password guidelines in Understanding Password Specifications and Guidelines for Junos OS in FIPS Mode.
To configure public keys for SSH authentication of root logins, use the ssh-ecdsa option. You can configure more than one public key for SSH authentication of root logins as well as for user accounts. When a user logs in as root, the public keys are referenced to determine whether the private key matches any of them.
The system is now ready to execute the set system fips level 1 command.