HTTPS/TLS
Cheat sheet · https://pcornel.dk/topic.php?topic=1547
Answer
HTTPS/TLS protects API transport; certificate identity validation is needed before trusting the endpoint.
Remember
A TLS handshake proves a negotiated transport, not operation authorization or payload safety.
First checks
openssl s_client -connect host:443 -servername host → protocol version, certificate chain and Verify return code: 0 (ok). curl -v https://host/ → fails on a certificate problem unless validation was disabled. Search automation code for verify=False and --insecure.
Commands
show running-config | include restconf|ip http secure-server- Inspect HTTPS and RESTCONF service enablement.
curl -k
Verify in this order
client resolves the host name → TLS handshake (1.2 or 1.3) → server certificate validated: chain, name, dates → encrypted session → only then credentials and data are sent
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1547