Use it when enabling a web interface or RESTCONF on a device.
HTTPS Preferred over HTTP
Prefer HTTPS over HTTP for device management: disable the plain HTTP server (no ip http server) and use ip http secure-server, or disable both if the web interface is not needed.
1. Use HTTPS (ip http secure-server) and disable HTTP (no ip http server).
2. Valid certificate.
3. Restrict with access-class.
4. AAA for logins.
5. Disable entirely if not needed.
Context & applicabilityCommon mistakes · platform/version boundaries
- Self-signed certificates accepted with warnings, training admins to ignore them.
- Old TLS versions or weak cipher suites still enabled.
- HTTPS management reachable from user networks.
- Web UI vulnerabilities left unpatched (IOS XE web UI CVE-2023-20198 was mass-exploited) — disable the HTTP server when not needed.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- SSHv2 protects the session; VTY policy still controls who may connect and how users authenticate
- Use a dedicated management VRF/interface where supported and restrict sources with ACL/firewall policy
- Disable Telnet and unused HTTP services
- Prefer named administrators, AAA, least privilege, timeouts and audit logging
- Preserve an out-of-band recovery path before changing remote access.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
HTTPS preferred over HTTP for device management
Web interfaces on routers, switches and controllers handle logins and configuration, so they must not run over clear-text HTTP. Cisco's IOS hardening guide recommends enabling the secure server (ip http secure-server) and disabling ip http server, or disabling both if the web interface isn't used.
HTTP versus HTTPS
| HTTP | HTTPS | |
|---|---|---|
| Encryption | None; credentials visible on the wire | TLS |
| Server authentication | None | Certificate |
| Integrity | Pages and commands can be modified | Protected |
| Port | 80 | 443 |
R1(config)# no ip http server
R1(config)# ip http secure-server
R1(config)# ip http secure-trustpoint WEB-TP
R1(config)# ip http authentication aaa login-authentication MGMT-AAA
R1(config)# ip http access-class ipv4 MGMT-HOSTS
R1(config)# ip http tls-version TLSv1.2
R1# show ip http server status | include server status|access class|TLS
HTTP server status: Disabled
HTTP secure server status: Enabled
HTTP secure server TLS version: TLSv1.2
scanner$ curl -skI https://10.0.0.1/webui/ | head -1
HTTP/1.1 200 OK
scanner$ curl -sI --max-time 3 http://10.0.0.1/ || echo "port 80 closed"
port 80 closed
Making HTTPS meaningful
| Measure | Reason |
|---|---|
| CA-issued or internal-CA certificate | Browsers can validate the device; self-signed trains users to click through warnings |
| TLS 1.2 or later only | Old protocol versions removed |
| Access class | Only management networks reach the GUI |
| AAA authentication | Individual accounts and logging |
| Never expose to the Internet | Web interfaces are a frequent target for exploits |
When HTTP is still needed
Some features use the HTTP server for something other than administration (for example guest web authentication portals or certain automation agents). Check feature dependencies, and separate admin access from those uses with access classes and interface placement.
Documented example, not captured output.
Quick reference
Many network devices offer a web interface for management, and the same HTTP service often carries APIs such as RESTCONF. Plain HTTP exposes credentials and session cookies to anyone on the path, so only HTTPS should be enabled — and only if the interface is actually used, since web management services have been the target of serious, widely exploited vulnerabilities.
HTTPS management (web UI, RESTCONF) instead of HTTP:
no ip http server
ip http secure-server
ip http secure-trustpoint TP-MGMT
ip http authentication aaa login-authentication VTY
ip http access-class ipv4 MGMT
ip http max-connections 5
If the web UI is not needed, disable both (no ip http server, no ip http secure-server) — IOS XE web UI vulnerabilities (e.g. CVE-2023-20198) were exploited at scale on internet-exposed devices. Use a trusted certificate rather than the self-signed one so admins can detect interception.
ReferenceConfiguration & state1 section · depth on demand
Configuration example
no ip http server
ip http secure-server
ip http authentication local
ip http secure-ciphersuite aes-128-cbc-sha aes-256-cbc-sha
ip http access-class ipv4 MGMT-ACL
Documented example, not captured output; available cipher suites depend on the release. HTTP sends credentials in clear text; HTTPS encrypts the session. Restrict who can reach the management service with an access class, and prefer a dedicated management VRF or out-of-band network.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → HTTP / HTTPS Management → HTTPS foretrækkes frem for HTTP. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%