Pcornel
Networking · Security › Device Access & Management

HTTP / HTTPS Management

Cheat sheet · https://pcornel.dk/topic.php?topic=748

Back to the Topic

Answer

HTTP/HTTPS management is the device's built-in web server, used for the web UI and for RESTCONF. HTTP sends credentials in clear text; HTTPS encrypts them.

Remember

Turn off what is not used: no ip http server, and no ip http secure-server if HTTPS is not needed either. If HTTPS is used: restrict it with ip http access-class, authenticate with ip http authentication aaa or local, and replace the self-signed certificate with one from a trusted CA if clients validate it. Several serious IOS XE vulnerabilities targeted the web UI — keep it off internet-facing interfaces.

First checks

  • show ip http server status — HTTP and HTTPS server enabled, authentication, access class.
  • show ip http server secure status — HTTPS ciphers, TLS versions and trustpoint.
  • show running-config | include ip http — configured settings.
  • show control-plane host open-ports — TCP 80/443 listening.
  • show crypto pki certificates — the certificate HTTPS presents.

Commands

show ip http server status
Shows whether the HTTP and HTTPS servers are enabled, their ports, authentication method and access class.
ip http server
Enable the unencrypted HTTP management server; prefer HTTPS.
no ip http server
Disable the unencrypted HTTP management server.
ip http secure-server
Enable the HTTPS management server (also required by RESTCONF).
ip http authentication local
Authenticate HTTP/HTTPS management users against the local user database.
show ip http server secure status

Verify in this order

HTTP disabled → HTTPS only if required → access restricted to management sources → users authenticated → strong TLS and a trusted certificate → access logged

Where it usually breaks

network policy → TLS trust/validity → user authentication → service permission → dependent API or recovery

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=748

Confirmation

Confirm action

Continue?