Error "'admin' password is not set"

Symptom

An attempt to enable the HTTPS server using the https-server vrf command fails and the following error is returned:

Failed to enable https-server on VRF <VRF>. 'admin' password is not set
Cause

The switch is shipped from the factory with a default user named admin without a password. The admin user must set a valid password before HTTPS servers can be enabled.

Action
From the global configuration context, set a valid password for the admin user.
For example:
switch(config)# user admin password
Changing password for user admin
Enter password:************
Confirm password:************