Automation · RESTCONF
RESTCONF over HTTPS
Cheat sheet · https://pcornel.dk/topic.php?topic=5618
Answer
RESTCONF runs over HTTPS, using TLS and normally HTTP basic or token authentication. Devices need a valid certificate and the HTTPS server enabled, such as ip http secure-server on IOS XE.
Remember
- RESTCONF runs over HTTPS.
- Device needs a valid certificate.
- ip http secure-server on IOS XE.
First checks
openssl s_client -connect <dev>:443 </dev/null— device certificate- Trusted CA for device certs — validation
- HTTPS only (no HTTP) — security
Commands
ip http secure-serverip http server
Verify in this order
client → TLS → RESTCONF server
Where it usually breaks
Client payload/auth → HTTP transport → endpoint validation/policy → request accepted → queued/job execution → target mutation → effective state → consumer workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5618