Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

HTTPS Preferred over HTTP

Direct answer

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.

When to use this

Use it when enabling a web interface or RESTCONF on a device.

Operational verification

admin → HTTPS → AAA → GUI/API

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common HTTPS mistakes
  • 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.
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · IOS/IOS XE
Scope / prerequisiteUse it when enabling a web interface or RESTCONF on a device.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • show ip http server status — HTTPS enabled, HTTP disabled
  • show running-config | include ip http — config
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

HTTPHTTPS
EncryptionNone; credentials visible on the wireTLS
Server authenticationNoneCertificate
IntegrityPages and commands can be modifiedProtected
Port80443
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

MeasureReason
CA-issued or internal-CA certificateBrowsers can validate the device; self-signed trains users to click through warnings
TLS 1.2 or later onlyOld protocol versions removed
Access classOnly management networks reach the GUI
AAA authenticationIndividual accounts and logging
Never expose to the InternetWeb 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Confirmation

Confirm action

Continue?