This section provides an example of how to configure HTTPS using the CLI and log in to the web UI.
If the client connects to the device using HTTPS, the device sends a default or specified certificate to the client. If a default certificate is sent, the client cannot verify it and is prone to attacks. You are advised to use the specified certificate for security. For details, see CLI: Example for Logging In to the Web UI Using HTTPS (Specified Certificate).
Figure 1 shows how to configure local authentication administrator webadmin that can use HTTPS to log in to the web UI on the FW.
Item |
Data |
Description |
|---|---|---|
User name |
webadmin |
- |
Password |
Myadmin@123 |
- |
Authentication mode |
Local authentication |
- |
Role |
service-admin |
service-admin is a user-defined role and has permissions only on the network, policy, and object. |
Trusted host |
10.3.0.0/24 |
The administrator area is limited by IP address. |
Service Type |
WEB |
- |
Web service timeout period |
5 minutes |
- |
If you use the default settings of management interface to log in to the device, skip this step.
Because the default IP address of the management interface has been set to 192.168.0.1, the interface has been added to the Trust zone, and the administrator is allowed to log in to the device using HTTPS.
# interface GigabitEthernet0/0/3 ip address 10.3.0.1 255.255.255.0 service-manage https permit # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # acl number 2001 rule 5 permit source 10.3.0.0 0.0.0.255 rule 10 deny # web-manager security enable web-manager timeout 5 # aaa authentication-scheme default # manager-user webadmin password cipher %@%@*y:3*ZN}.%%qcL1cC|@XBVMDyDwlB.Wq'6JF(iOz2D8>A\SN%@%@ service-type web level 15 acl-number 2001 # bind manager-user webadmin role service-admin role service-admin description policy_object_network_readwrite_and_other_modules_none dashboard none monitor none system none network read-write object read-write policy read-write # return